daru icon indicating copy to clipboard operation
daru copied to clipboard

Port slow parts to Rubex

Open v0dro opened this issue 7 years ago • 5 comments

Rubex is nearing a phase where it can be used in Ruby gems, and I think a great way to test it would be to port some slow parts of daru to Rubex to speed them up. Which parts are best for porting is to be discussed in this issue.

https://github.com/v0dro/rubex

v0dro avatar Aug 09 '17 11:08 v0dro

I recommend to look at ChunkyPNG's approach, at least at the beginning. Their speed-up extension, OilyPNG is distributed as a separate gem, that just replaces some performance-critical methods with compiled ones.

zverok avatar Aug 09 '17 11:08 zverok

Interesting!

v0dro avatar Aug 09 '17 13:08 v0dro

I think .where would be a great candidate. It's extremely slow on large data sets.

baarkerlounger avatar Aug 11 '17 06:08 baarkerlounger

Just a short question: did anybody conduct systematic profiling for DaRu?

arbox avatar Aug 11 '17 10:08 arbox

@arbox Not really.

v0dro avatar Aug 12 '17 11:08 v0dro