Hi people,
I'm considering writing another plugin.
It'll be database-like, binary file-format-like, xml-like.
It'll have all the basic types that XML has (elements, attributes,
comments, text, etc) and an XML tree node model. However, internally,
in terms of it's implementation, although you don't get to see this
or have any control over it... any XML node may be stored in RAM or
on disk or on both! Obviously the idea is to get high speeds, while
still being RAM efficient.
Well... I'm thinking, as a design, it would be nice to have my plugin
able to promise to not use more than a certain amount of RAM. I could
have a ".CacheSize as integer" property. So as part of that promise,
when required memory exceeds that limit, the extra data is saved to
disk and flushed from RAM.
Now to keep that promise, it would be nice to have some control over
the memory management. For example, with malloc, you can't really be
sure of how much RAM is allocated. I'd like to just allocate a block,
say 16MB at first, and then suballocate out of there. I'd also like
to know if I can't allocate from that 16MB (or whatever size it is),
so I can start freeing cached data.
Anyone know of some good code to manage memory like this?
--
http://elfdata.com/plugin/
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
From Mon 17 Jul 2006 23:35:07 +0200
Return-Path: <realbasic-plugins-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
id 47EF9845DBD; Mon, 17 Jul 2006 14:35:29 -0700 (PDT)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on
www.realsoftware.com
X-Spam-Level:
X-Spam-Status: No, score=-2.6 required=4.5 tests=AWL,BAYES_00 autolearn=ham
version=3.1.1
Received: from lists.realsoftware.com (lists.realsoftware.com [209.198.132.125])
by xmail.realsoftware.com (Postfix) with ESMTP id 6E7D1845DB1;
Mon, 17 Jul 2006 14:35:26 -0700 (PDT)
Received: from lists.realsoftware.com (localhost [127.0.0.1])
by lists.realsoftware.com (Postfix) with ESMTP
id 4BC61139254C; Mon, 17 Jul 2006 16:35:16 -0500 (CDT)
X-Original-To: realbasic-plugins at lists dot realsoftware dot com
Delivered-To: realbasic-plugins at lists dot realsoftware dot com
Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de
[80.67.18.14])
by lists.realsoftware.com (Postfix) with ESMTP id C8A23139253E
for <realbasic-plugins at lists dot realsoftware dot com>;
Mon, 17 Jul 2006 16:35:09 -0500 (CDT)
Received: (qmail 10582 invoked from network); 17 Jul 2006 21:35:09 -0000
Received: from unknown (HELO [192.168.1.80]) (363246 at [84 dot 175 dot 111 dot
59])
(envelope-sender <support at monkeybreadsoftware dot de>)
by smtprelay02.ispgateway.de (qmail-ldap-1.03) with SMTP
for <realbasic-plugins at lists dot realsoftware dot com>;
17 Jul 2006 21:35:09 -0000
To: realbasic-plugins at lists dot realsoftware dot com (REALbasic Plugins)
In-Reply-To: <D08665A2-393B-4D23-9EC4-FE79FE59EFCA at realsoftware dot com>
From: support at monkeybreadsoftware dot de (Christian Schmitz)
Date: Mon, 17 Jul 2006 23:35:07 +0200
Message-ID: <1hin85l dot y9b0dp1paj36vM%support at monkeybreadsoftware dot de>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Organization: Monkeybread Software Germany
X-Face: nrf3>{WQ6c&r+7 at e)"]0G60`-6ND^)I2mI%>)QGYa=9"=7jhd-g2|b3!>Al0+
Ccb%xGQshhi|g at QU2$
User-Agent: MacSOUP/D-2.7 (Mac OS X version 10.4.7)
Subject: Re: Plugin Linker problem
X-BeenThere: realbasic-plugins at lists dot realsoftware dot com
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot
com>
Sender: realbasic-plugins-bounces at lists dot realsoftware dot com
Errors-To: realbasic-plugins-bounces at lists dot realsoftware dot com
Jonathan Johnson <jonj at realsoftware dot com> wrote:
That definitely sounds like a bug,
I put a note on my website that RB 2006r3 makes problems with linking
plugins.
Gru=DF
Christian
--=20
Around eleven thousand functions in one REALbasic plug-in.=20
The Monkeybread Software Realbasic Plugin v6.2.
<http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|