Raised This Month: $ Target: $400
 0% 

Dynamic Objects and Properties - v.0.0.32 - [2018.05.08]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 07-23-2016 , 15:42   Re: Dynamic Objects and Properties - v.0.0.16 - [2016.07.14]
Reply With Quote #11

This stuff looks interesting. Imagine if we can create dynamic objects based on a JSON Schema and then parse a JSON file with validation. I tried to do something similar to this with plain keyvalue files, before the transitional syntax was announced.

I'm concerned about crashing plugins. Will this also result in memory leaks? Say a plugin creates several objects and then for some reason crashes. Then it can't dispose those objects. I suppose the Dynamic plugin could track which plugin that owns each object and watch if a plugin is unloaded and automatically dispose it.

I was just experimenting with methodmaps myself and did make a simple "class" based on StringMap. This is static objects, but my simple benchmarks shows that it reads a property/key in 70-110 nanoseconds, so it's pretty fast.
Spoiler
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)

Last edited by rhelgeby; 07-23-2016 at 15:43.
rhelgeby is offline
Send a message via MSN to rhelgeby
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode