Replies: 1 comment
-
Hi @rackuka Sorry for keeping you waiting and thank you for the feedback. I've gathered some tips from my colleagues that I wanted to share with you.
this.hf.suspendEvaluation()
for (let i = 0; i < this.outputRows * sampleRatio; i++) {
this.hf.setCellContents({ sheet: this.outputsSheetId, row: i, col: 0 }, [[Math.ceil(Math.random() * this.outputRows)]])
}
this.hf.resumeEvaluation() We are working on a tutorial that helps optimize the calculation engine's overall performance. But I think that those points are essentials. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have excel workbook which I parse and provide to HyperFormula as dictionary (Record<string, string[][]>) of array of arrays. It takes 30-35 seconds for the buildFromSheets to complete loading. Profiling shows that the most of the time is consumed by buildGraph.
This time is not acceptable at all for my case where hyperformula is supposed to serve as calculation engine in server environment with the workbook be the calculation model. Latency for processing calculation request should exceed 1 second (including network latencies). So appears that loading the workbook every time is not an option (35 seconds to load).
I would appreciate for the advise as to how to improve overall time of buildFromSheets (if possible at all).
Beta Was this translation helpful? Give feedback.
All reactions