octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #39479] 'pkg -forge list' takes 56.5 seconds


From: Andrew Janke
Subject: [Octave-bug-tracker] [bug #39479] 'pkg -forge list' takes 56.5 seconds
Date: Thu, 21 Mar 2019 17:32:57 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36

Follow-up Comment #16, bug #39479 (project octave):

Found a workaround you can do now!

If you download the Octave Forge file list from
https://sourceforge.net/projects/octave/files/Octave%20Forge%20Packages/Individual%20Package%20Releases,
it has a complete file list that you can parse with a simple regex. (And
there's even an embedded JSON list with additional metadata support, for if &
when Octave gets JSON support.)

I added it to my little pkg-replacement toy.
https://github.com/apjanke/octave-packajoozle/blob/master/inst/%2Bpackajoozle/%2Binternal/OctaveForgeClient.m#L149-L165

It's a biggish file to parse, so it still takes a bit, but it brings the `pkg
-forge list` time down to under 1 second, with about ten lines of code.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?39479>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]