~/sajad — README.md
Sajad Faghfoor Maghrebi

sajad

Indexes that are fast on paper and fast on real hardware.

// I'm a fourth-year PhD student in the SysNet group at the University of Toronto, working with Prof. Niv Dayan at ORCA Lab. I design data structures, analyze them properly, and then make them earn their keep on actual hardware.

about

I'm Sajad Faghfoor Maghrebi (sa-JAAD · fagh-FOOR · magh-reh-BEE) . I work on indexes and the data structures underneath them. What I like about this area is that you have to get two things right at once: the algorithm has to be sound, with real bounds on space and time, and the implementation has to respect the machine, where cache lines, branch predictors, and memory bandwidth decide what is actually fast. I find the best ideas usually come from taking both sides seriously.

// lately: scalable vector indexes, the piece that makes semantic search in AI systems affordable.

publications

powerlaw.pdfarXiv 2026
Graph search icon

A Power Law in Logarithm's Clothing: On the Scalability of Graph-Based Vector Search

Sajad Faghfoor Maghrebi, Navid Eslami & Niv Dayan

sphinx.pdfVLDB 2025
Sphinx logo

Sphinx: A Succinct Perfect Hash Index for x86

Sajad Faghfoor Maghrebi & Niv Dayan

education

  1. 2023 – presentUniversity of Toronto — PhD, Computer Science. Grade: A+
  2. 2018 – 2023Sharif University of Technology — B.Sc., Computer Engineering. GPA: 3.85/4.00
  3. 2019 – 2023Sharif University of Technology — Minor, Economics. GPA: 4.00/4.00

awards

6th
of 100,000+ participants

// Iranian National University Entrance Exam, Jan 2018.

experience

A scientist's habits, an entrepreneur's itch.

I like understanding things down to the last bit, and I like building things people actually use. The first pulled me into research. The second had me co-founding two companies before I finished undergrad, and it still shapes how I pick problems: worth solving, and worth shipping.

  1. Sep 2023 – present Teaching Assistant — University of Toronto

    Software engineering (CSCC01, CSC301), data structures (CSCB63), databases twice over (CSC343), intro CS (CSC148), database system technology (CSC443), and lead TA for web programming (CSC309).

  2. Jul 2022 – Dec 2022 Software Engineer Digikala

    The largest e-commerce company in the Middle East. I started on a gnarly refactor of tens of thousands of lines of monolithic product logic, then helped my team carve it into services so it could scale and stay maintainable.

  3. Sep 2020 – Sep 2023 Co-founder & CTO GoldScan

    Led the team that built a fast back-testing engine and strategy optimizer for automated trading across crypto, stocks, and forex. Our strategies ran for dozens of traders. I also built the inter- and intra-exchange crypto arbitrage and the live execution platform.

  4. Sep 2018 – Jan 2019 Co-founder — Karaneh

    Ran workshops at middle and high schools on how financial markets actually work, from the basic concepts to the mechanics real traders deal with.

projects

Things I built because I wanted them to exist.

  1. Rishe · ریشه — where Persian and English turn out to be cousins

    Persian and English share far more ancestry than most people expect, and Ali Nourai's etymological dictionary maps it word by word. I turned that dictionary into something you can wander through: 950+ root families and 11,000+ words laid out as a zoomable constellation, derivation trees you can search, lines of classical poetry showing each word in use, and a pathfinder that takes any two words and walks you from one to the other. source

  2. Philosophitor — summaries and quizzes for learning philosophy

    A tool I built to study philosophy properly. Pick a philosopher or a question, like free will or what makes an action moral, and it gives me a short summary of the main positions and then quizzes me on them. The questions are about the ideas themselves: what the argument claims, what the standard objections are, how the different schools answer each other. The material is drawn from the Philosophize This! transcripts, which I can also search directly.

  3. Trading infrastructure & strategy optimization — the engine behind GoldScan

    The system our traders ran on every day. I built the backtester, which had to model each market's own quirks, the charts and reports people used to judge a strategy, and the Optuna-based tuner that searched parameter space overnight. Under it all sat a MongoDB service that turned messy feeds from different markets into one clean, queryable history.

  4. pytse-client — open-source Python client for Tehran Stock Exchange data

    The library people reach for when they want Iranian market data in Python. I made price history and order-book fetching fast and async, added the statistical analysis layer, and wrote the tests so it stayed reliable as the exchange changed things underneath us.

  5. Crypto arbitrage system — finding the same coin at two prices

    Price gaps between exchanges, and between trading pairs on the same exchange, close in seconds. I built a system that spotted them, modeled the order books to estimate how much could actually be filled at that price, and used classical search to plan executions that captured the gap without eating the risk.

contact

Say hi.