Thanks Niraj for the advice. In the end Nikita (in the bug <https://bugs.eclipse.org/bugs/show_bug.cgi?id=577649>) made me realize that I didn't need to overcomplicate things as all the memory is freed at once I don't need to work too hard to reference count the multiple references to the same block of memory.
Jonah ~~~ Jonah Graham Kichwa Coders www.kichwacoders.com On Wed, 8 Dec 2021 at 02:13, Niraj Modi <niraj.m...@in.ibm.com> wrote: > Hi Jonah, > We have a simple Sleak tool that monitors the graphics resources only but > not all native reference counting that you are looking for. Please check if > it helps, SWT article on Sleak: > https://www.eclipse.org/articles/swt-design-2/sleak.htm > > Regards, > Niraj Modi > > ----- Original message ----- > From: "Jonah Graham" <jo...@kichwacoders.com> > Sent by: "platform-dev" <platform-dev-boun...@eclipse.org> > To: "Eclipse platform general developers list." <platform-dev@eclipse.org> > Cc: > Subject: [EXTERNAL] [platform-dev] reference counting for native resources > Date: Mon, Dec 6, 2021 9:12 PM > > Hi folks, > > I am working on some performance issues with TextLayout (may fix part of > https://bugs.eclipse.org/bugs/show_bug.cgi?id=168557 - at least on > Windows) > > One of the performance issues is that we make copies of large buffers over > and over again when a little bit of pointer arithmetic + sharing buffers > improves the situation. > > Are there any examples in SWT already of reference counting of native > resources? > > Bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=577649 is for tracking > this specific part of the work. > > Thanks > Jonah > > > ~~~ > Jonah Graham > Kichwa Coders > www.kichwacoders.com > _______________________________________________ > platform-dev mailing list > platform-dev@eclipse.org > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/platform-dev > > > > > _______________________________________________ > platform-dev mailing list > platform-dev@eclipse.org > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/platform-dev >
_______________________________________________ platform-dev mailing list platform-dev@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/platform-dev