On Tuesday, March 4, 2014 3:22:59 AM UTC+1, Timothy Groves wrote:
>
>
> On 14-03-03 05:56 PM, PMario wrote: 
> > How does your data look like? 
> The data consists of a tree-like structure.  The program generates a 
> continent for a fantasy role-playing game, creating nations within the 
> continent, counties within the nations, communities within the counties, 
> and so on down to the individual people. 
>

I see. interesting :)
 

>
> The output is still up in the air, but generally, will be text-like data. 
> > Is your data kind of sorted? 
> Not really.  Tree-like structure. 
>

That would be good, if TW would use it :) Searching trees is much faster, 
if you create them in the right way. So if a search can bail out early. 

eg: 
continent1       continent2
  country 1.1      country 2.1
  country 1.2      country 2.2
       community 1.2.1
       community 1.2.2

So if you search for somethng and you know that it shold be on continent 2 
and you find a tree node that has continent 1 in it, you know, that you 
don't need to go down this route. Since everything stored there is part of 
continent 1. so you can eliminate a lot of nodes, with just one compare. 

The probelm here is. TW doesn't use a tree like structure to store its 
data. 

 

> > Why don't you use a database to store your data? 
> As far as I know - and this information comes from our team member with 
> web development background - using a database requires a server-side 
> solution.  Our goal is to make this program dump everything to [a|many] 
> local file[s], to be browsed locally only. The end user should not need 
> to install a full LAMP stack just to view the output. 
>

It depends on your target device. On a PC there are several databases, that 
don't need a LAMP stack.
You can run databases on many systems, not just linux but if you want to 
have the stuff on a mobile, you'll have a different problem anyway. 
Databases can have there server with them. 
I didn't think about MySQL or an SQL like database at all. 
No P... javascript :)

We started with just a massive stack of web pages, but this proved to be 
> unmanageable for a number of reasons, one of which was that it could 
> take up to a half an hour to delete the output from a test run, and we 
> still had two more levels of detail to add.  So we're looking for some 
> kind of single-file solution, that is compatible with our programming 
> language of choice (Object Pascal). 
>

So it should be for a PC?

-m

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to