Skip to content
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

Closed
mmeeks opened this issue Sep 17, 2024 · 10 comments
Closed

perf: improve ScFlatUInt16RowSegments::dumpAsString() #10060

mmeeks opened this issue Sep 17, 2024 · 10 comments
Assignees
Labels
24.04 Easy Hack enhancement New feature or request performance Improving COOL performance

Comments

@mmeeks
Copy link
Contributor

mmeeks commented Sep 17, 2024

Performance of this method is not that ideal:

image

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 :-)

@mmeeks mmeeks added enhancement New feature or request Easy Hack performance Improving COOL performance 24.04 labels Sep 17, 2024
@Darshan-upadhyay1110
Copy link
Contributor

That could be similarly easily optimized :-) @Darshan-upadhyay1110 I assume you can mentor this too :-)

Sure :)

@sopyb
Copy link

sopyb commented Sep 28, 2024

I would like to work on this issue and try to make a patch for it. Could you please assign the issue to me?

@sopyb
Copy link

sopyb commented Sep 28, 2024

I have submitted a patch on gerrit and I am awaiting review.

@Darshan-upadhyay1110
Copy link
Contributor

@sopyb Thanks for the patch :)

@mmeeks
Copy link
Contributor Author

mmeeks commented Oct 1, 2024

Ooh - thanks =) nice work.

@mmeeks
Copy link
Contributor Author

mmeeks commented Oct 1, 2024

@sopyb merged - are you interested in other easy-ish performance things ?

I think looking at #8159 there might be some more low hanging fruit if you're interested =)

@mmeeks mmeeks closed this as completed Oct 1, 2024
@sopyb
Copy link

sopyb commented Oct 1, 2024

@sopyb merged - are you interested in other easy-ish performance things ?

I think looking at #8159 there might be some more low hanging fruit if you're interested =)

I'll be looking into it Thursday, thanks for the heads-up

@Darshan-upadhyay1110
Copy link
Contributor

@sopyb merged - are you interested in other easy-ish performance things ?
I think looking at #8159 there might be some more low hanging fruit if you're interested =)

I'll be looking into it Thursday, thanks for the heads-up

Hello @sopyb how are you :)

I think you were working on #8159 . How are things going on here , any joy ?
CC: @grandinj

@sopyb
Copy link

sopyb commented Oct 9, 2024

@sopyb merged - are you interested in other easy-ish performance things ?
I think looking at #8159 there might be some more low hanging fruit if you're interested =)

I'll be looking into it Thursday, thanks for the heads-up

Hello @sopyb how are you :)

I think you were working on #8159 . How are things going on here , any joy ?
CC: @grandinj

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.

@Darshan-upadhyay1110
Copy link
Contributor

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/
https://hacktoberfest.com/

Happy hacking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
24.04 Easy Hack enhancement New feature or request performance Improving COOL performance
Projects
Archived in project
Development

No branches or pull requests

3 participants