scraperwiki / xlsx-cgi

0 stars 0 forks source link

Low hanging fruit for more speed #2

Closed pwaller closed 10 years ago

pwaller commented 10 years ago

Things are already looking quite good.

screenshot from 2014-07-09 16 00 06

The easiest things to make faster I think would be:

So if we can make both of these two things super efficient, maybe there is a 2x speedup available.

For the second one, the cost is coming in through both Sprintf calls. I think in colName it could be reduced to a string addition using the + operator. You could avoid the Sprintf call in CellIndex by making it return the row part and the column part seperately and templating them into the cell when you finally sprintf them.