Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: bonjorno7/3dn-bip

Tags

v1.0.11

Toggle v1.0.11's commit message
Bump version

v1.0.10

Toggle v1.0.10's commit message
Remove outdated youtube videos

v1.0.9

Toggle v1.0.9's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Optimizations (#48)

TL;DR: The PR reduces 1000x calls of load in a loop from a total time of 1.7s to 0.01s (within a VMWare VM).

- We removed the thread pool and are using worker queues instead.
- Default file type detection is based on extensions now. Magic based detection can still be activated.
- Note: The threads and the timer are registered on demand and will be removed automatically when all items have been processed.

* Use worker queues instead of a thread pool.

* Add support for extension based file type detection.

* Add dots to extensions

And use pathlib to get the suffix.
I think this approach is cleaner.

* Use early return if file has no extension

This allows the code after it to be tabbed back, which I prefer.
Also I changed comments a little.

* Add comments to settings.py

I think it's good to have this documented.

* Rename ImagePreviewCollection event to abort_signal

This makes it more obvious what it's for.

* Tweaks to thread.py

Adjusted some comments, newlines, formatting.
We want to catch it if a queue item is somehow not a correct size tuple, so I'm just doing a generic except instead of excepting Empty.
Variables that end in `sig` now end in `_signal`.
`_read_thread` no longer takes `thread_index`, as it wasn't using it.
Swapped the order of the signal check and try block.
Removed manual unregister of timer, as returning None is enough.

* Rename thread.py to threads.py

There are multiple threads.
All the other files follow a plural naming scheme.

* Bump version to 1.0.9

Co-authored-by: bonjorno7 <[email protected]>

v1.0.8

Toggle v1.0.8's commit message
KIT OPS is using 3DN BIP.

v1.0.7

Toggle v1.0.7's commit message
Fix showcase titles in documentation.

v1.0.6

Toggle v1.0.6's commit message
Improve wording of pitch in documentation.

v1.0.5

Toggle v1.0.5's commit message
Use LFS while bundling ZIP files.

v1.0.4

Toggle v1.0.4's commit message
Improve pitch in README.md.

v1.0.2

Toggle v1.0.2's commit message
Add README.md to PyPI package.

v1.0.1

Toggle v1.0.1's commit message
Add README.md to PyPI.