-
Notifications
You must be signed in to change notification settings - Fork 701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf: improve ScFlatUInt16RowSegments::dumpAsString() #10060
Comments
Sure :) |
I would like to work on this issue and try to make a patch for it. Could you please assign the issue to me? |
I have submitted a patch on gerrit and I am awaiting review. |
@sopyb Thanks for the patch :) |
Ooh - thanks =) nice work. |
Hello @sopyb how are you :) I think you were working on #8159 . How are things going on here , any joy ? |
Thanks for checking in. I started university on September 30th, which has been keeping me pretty busy. I'm still adapting to the new schedule and figuring out how to balance everything. I haven't had a chance to look into this issue yet, but I'm working on finding time for it. I'll send an update in here once I've made some progress. Currently, it would be a great help for when I get around to working on it if you could provide a link to documentation or provide pointers on how to view the frame-graph to properly check my work. |
hii @sopyb Great to hear from you! I hope university is going well. Also, we’re in Hacktoberfest right now! If you have some spare time, consider contributing—it's a great way to get involved! https://collaboraonline.github.io/hacktoberfest/ Happy hacking |
Performance of this method is not that ideal:
We repeatedly allocate and free strings it seems. We should instead use an OStringBuffer from rtl/strbuf.hxx and preferably guestimate it's size to pre-allocate that too once before appending numbers to it - which can be converted in-line directly into the data structure.
Then convertToOStringAndClear at the end =)
Every 1.5% matters I think - if it's easy to nail.
For bonus points, there are two other dumpAsString methods in this file:
core/sc/source/core/data/segmenttree.cxx
That could be similarly easily optimized :-) @Darshan-upadhyay1110 I assume you can mentor this too :-)
The text was updated successfully, but these errors were encountered: