eclipse-plugins icon indicating copy to clipboard operation
eclipse-plugins copied to clipboard

Multithreaded CMSIS-Pack index update

Open flit opened this issue 3 years ago • 8 comments

The CMSIS-Pack plugin should use multithreaded downloads of PDSC files to update the index.

For comparison, cmsis-pack-manager can update the entire index (currently 695 packs) in less than 20 seconds, including download and parsing the PDSC. Most of that time is waiting for a request for an invalid pack URL to time out; the actual update time for 694 packs is about 3 seconds.

flit avatar Dec 29 '20 21:12 flit

Yes, that would be interesting to know how they did it.

Feel free to investigate and suggest solutions.

ilg-ul avatar Dec 30 '20 00:12 ilg-ul

If I get a chance, I'll try to work on it.

flit avatar Dec 30 '20 21:12 flit

I suggest you first make a plan, and then we discuss possible solutions.

ilg-ul avatar Dec 30 '20 21:12 ilg-ul

Sounds good.

flit avatar Dec 30 '20 21:12 flit

Don't get too excited, I completely forgot how that code works, so I can't be of much practical help. :-(

Plus that, as I mentioned, as soon as I reorganise my projects, I'll no longer use CMSIS Packs at all, so my interest in spending time on them is pretty low.

ilg-ul avatar Dec 30 '20 21:12 ilg-ul

Understood. My interest is that users can take advantage of CMSIS Packs to get both SVDs and pyocd config data via an integrated UI. I don't need it for myself (cmsis-pack-manager is integrated into pyocd). (I'm also thinking about making the SVD from pyocd available to the launch config.)

flit avatar Dec 30 '20 21:12 flit

The J-Link plug-in automatically accesses the SVD if the device name was correctly associated with the project and the CMSIS Pack is available.

Anyway, an alternate solution with only a bit more effort to configure is to copy the SVD in the project, and configure the path to it in the SVD tab. And since 6.1.0, the SVD can also be compressed with zip.

ilg-ul avatar Dec 30 '20 21:12 ilg-ul

Nice, thanks for the tips.

flit avatar Dec 30 '20 22:12 flit