This repository has been archived by the owner on Jan 25, 2024. It is now read-only.
0.2.0 second beta #5
MolotovCherry
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Biggest feature is that now are included many different ways to manually destroy wands. The reason you need to do this is because JVM can't GC these since they need to stay alive, and
finalize()
is an incredibly unreliable, broken method, which even causes objects to be slower (so, I removedfinalize()
, which means, faster objects!).You shouldn't rely on
Magick.initialize().use
toterminate()
every time, because, realistically, apps get big, and you can't put it all your code in only one block. (And you should never terminate until you're actually done using things; it's a waste of CPU)That means the only previous way was to call
wand.destroy()
on every single wand, which is very verbose, and you may need more options. Now, you can destroy all wands of a certain type (MagickWand
,PixelWand
,DrawingWand
), clear all wandsMagick.destroyWands()
, and you can even access the internalid
of the wand and destroy byid
, (you can also batch destroy by ids).Changes:
wand.destroy()
method to actually destroy memoryFull Changelog: 0.1.0...0.2.0
This discussion was created from the release 0.2.0 second beta.
Beta Was this translation helpful? Give feedback.
All reactions