On Wed, Feb 28, 2018 at 8:44 AM, vitalije <[email protected]> wrote:

>
> v1: average time: 159.9 ms
> v2: average time: 44.9 ms
>
​
Many thanks for this important work.​

> Yesterday I have re-implemented the above algorithm in Rust. Loading
> leoGlobals.py using this Rust extension on my machine takes on average
> about 25 ms. More than 6 times faster then atFileCommander.read, and about
> 2 times faster then load_derived_file.
>
​...​


> The only drawback is that sharing binary libraries is not so easy.
>
​Imo, the additional speed gained by using rust is not nearly worth the
distribution difficulties.  I strongly encourage you to use only pure
python solutions to Leo's core.​


> But building it from source is quite easy if you already have installed
> rustc and cargo. Just execute:
>
> cargo build --release
> and copy/rename target/libatfile.so to the Leo's installation folder and
> rename it to atfile.so on Linux (on Windows maybe atfile.dll or atfile.pyd,
> I am not sure). And it is ready to go.
>

​Imo, building from sources, especially on Windows, is never easy.

A plugin could be built this way, but not Leo itself. ​


​Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to