Closed kostya closed 1 year ago
@kostya Fixed and released new version.
still failing:
/var/lib/gems/3.0.0/gems/nokolexbor-0.2.1/lib/nokolexbor.rb:3:in `require': /var/lib/gems/3.0.0/gems/nokolexbor-0.2.1/lib/nokolexbor/nokolexbor.so: undefined symbol: strnstr - /var/lib/gems/3.0.0/gems/nokolexbor-0.2.1/lib/nokolexbor/nokolexbor.so (LoadError)
from /var/lib/gems/3.0.0/gems/nokolexbor-0.2.1/lib/nokolexbor.rb:3:in `<top (required)>'
still failing:
/var/lib/gems/3.0.0/gems/nokolexbor-0.2.1/lib/nokolexbor.rb:3:in `require': /var/lib/gems/3.0.0/gems/nokolexbor-0.2.1/lib/nokolexbor/nokolexbor.so: undefined symbol: strnstr - /var/lib/gems/3.0.0/gems/nokolexbor-0.2.1/lib/nokolexbor/nokolexbor.so (LoadError) from /var/lib/gems/3.0.0/gems/nokolexbor-0.2.1/lib/nokolexbor.rb:3:in `<top (required)>'
What is your OS and gcc version?
gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0 Ubuntu 22.04.1 LTS
@kostya Can you try this gem locally and see if it fixes the error?
gem uninstall nokolexbor
gem install /path/to/nokolexbor-0.2.1.gem
It works if i do gem uninstall && gem install, from rubygems or from your file.
But if i install it from bundler, undefined symbol: strnstr
It works if i do gem uninstall && gem install, from rubygems or from your file. But if i install it from bundler,
undefined symbol: strnstr
Just released new version and it should be good now.
fixed, thanks.
just compare with crystal, funny that in ruby parse faster, that in compiled language. crystal parse: 2.88s, css: 0.6s ruby parse: 2.34s, css: 1.43s
Probably in crystal finalize, and free memory called on every step. I dont know how it called in ruby.
Probably in crystal finalize, and free memory called on every step. I dont know how it called in ruby.
It will be freed on GC, depending on how large the document is.
I'm wondering why css differs that much.
is css not only pure lib time but also extract array. and loop in ruby, which is should be slower.
is css not only pure lib time but also extract array. and loop in ruby, which is should be slower.
I'm not using ruby array but lexbor array. Maybe because I did extra things like making result set unique and ordering the result set.