Hi again. --- In [EMAIL PROTECTED], Alex Peters <[EMAIL PROTECTED]> wrote: > While it is true that loading everything that's needed into the map > would be possible and not too difficult, it seems that the current > method of alias execution by the script has been overlooked. > > The beauty of the way it works, is that the aliases in the script are > defined as nothing more than script labels. This means that all the > script needs to do in order to run an alias is grab the name, prepend > it with ".@" and run it like a script call to a specific label.
I do understand that script-label feature. And it could still exist as I wrote before. It's mainly the string for storing and parsing the alias names in memory that I would replace by a map, that's all. > To that end, the script doesn't actually open itself for reading when > it calls an alias. PowerPro does all the dirty work here. Hmmm, does it really? I doubt that PowerPro is clever enough to keep a script file in memory to wait for a call to one of its labels. I thought every call to a label means that the script file is re- opened, re-parsed up to that label, then the commands are parsed and then it is closed on a "quit". So a real huge file *might* inflict performance here. But of course I might be wrong (again)... > This would mean that if the entire map were not to be rebuilt, then > the user would have to tell the script which aliases were changed, > possibly through an `Update AliasName' alias. Once again: If my alias would link a to script like: aliasMap["cmd"] = [EMAIL PROTECTED] I could still change my "[EMAIL PROTECTED]" in any way I want without having to change the map. Of course for an alias with a "direct" command like: aliasMap["cmd"] = "path/to/program" it would be different and indeed it could be done by an update-script then, which is not too difficult, because a map doesn't have to be searched but its contents can be changed directly. > In addition to not having to tell ARB when you modify an existing > alias, another advantage of having the alias commands stored only in a > file and not in memory, is if you have many, many aliases (as Ravi > does) then you won't be cluttering up your memory for the sake of > avoiding a script call. OK. But you'll get a pretty huge script file then, which will be opened and re-opened lots of times and thus put into disk cache which puts it into memory as well, if I'm not mistaken. I still think that it should be more effective here to have a data-structure like a map in memory than parsing script files and strings from memory. But that's just my opinion... > However everything's open to debate and opinion of course, so everyone > who's using ARB is free to share their thoughts. Well, actually I don't use it and I think I won't. I played around with it a bit and with my script ideas and I have to say that this concept is just not for me. I just don't like typing in a commandline, I always prefer menus and buttons. Also I found some flaws in PowerPro's auto-completion and in the vec- plugin, that turned me off as well...;-) Mockey ------------------------ Yahoo! Groups Sponsor ---------------------~--> Yahoo! Domains - Claim yours for only $14.70 http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/JV_rlB/TM ---------------------------------------------------------------------~-> **** EDIT YOUR POSTINGS !!!! **** Please remove as much as possible from original messages before replying to them. ________________________________________________ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/power-pro/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
