jpeddicord / askalono

A tool & library to detect open source licenses from texts
Apache License 2.0
256 stars 25 forks source link

Add single-threaded implementation of Store::analyze_content #13

Closed jpeddicord closed 6 years ago

jpeddicord commented 6 years ago

To solve WASM (#1), threads probably have to be dropped for that target.

analyze_content needs a twin that does the same thing, just without Rayon. I'm not sure if there's a lot of code re-use possible here, but the closure inside fold can probably be factored out. Not too difficult, just needs some tinkering.

jpeddicord commented 6 years ago

This may not be an issue; emscripten might stub this out anyway.

jpeddicord commented 6 years ago

Done in 0ab9eefa1c4a354fedbeacda2c199c00e973d543