CodeConnect / SourceBrowser

C# in. HTML out.
http://sourcebrowser.io
MIT License
91 stars 22 forks source link

Fixing performance issues. Closes #76 #80

Closed JoshVarty closed 9 years ago

JoshVarty commented 9 years ago

Two fixes:

  1. We were processing too many solutions for some projects. For example, Newtonsoft.Json has 7. Now we take the solution with the shortest path name, assuming (perhaps incorrectly in some cases) that authors will put their solutions at the shallowest point and that they will have short names. (ie. mySolution.sln vs. mySolution.Portable.sln)
  2. Lucene was writing to disk every time a token was added to the index. Now we write only for every single document. This may still be too much, but yielded a massive performance gain as is.