From thykeeper at nerdshack.com Mon Aug 27 06:31:14 2007 From: thykeeper at nerdshack.com (Brother Josef) Date: Mon, 27 Aug 2007 17:31:14 +0700 Subject: [WASTE-list] Turning off InvokeWEUndoUPP Message-ID: <61C868E0-739F-40A8-8EC7-13E7803EF329@nerdshack.com> I'm writing some text processing code which styles syntax using WESetOneAttribute. As I was optimizing for speed in Shark I noticed that a massive amount of the time spent is from InvokeWEUndoUPP being called from within WESetOneAttribute. I tried to turn of the undo flag but this function is still invoked and as far as i can tell (still new to shark) is single handedly killing the processing speeds, what ever it's doing is pretty major. Can I turn this off some how? thanks for your ideas. Regards, Josef -------------- next part -------------- An HTML attachment was scrubbed... URL: From marco.piovanelli at pobox.com Mon Aug 27 07:01:29 2007 From: marco.piovanelli at pobox.com (Marco Piovanelli) Date: Mon, 27 Aug 2007 13:01:29 +0200 Subject: [WASTE-list] Turning off InvokeWEUndoUPP In-Reply-To: <61C868E0-739F-40A8-8EC7-13E7803EF329@nerdshack.com> References: <61C868E0-739F-40A8-8EC7-13E7803EF329@nerdshack.com> Message-ID: <20070827110129.2077577244@relay.pair.com> On Mon, 27 Aug 2007 17:31:14 +0700, Brother Josef (thykeeper at nerdshack.com) wrote: >I'm writing some text processing code which styles syntax using >WESetOneAttribute. As I was optimizing for speed in Shark I noticed >that a massive amount of the time spent is from InvokeWEUndoUPP being >called from within WESetOneAttribute. I tried to turn of the undo >flag but this function is still invoked and as far as i can tell >(still new to shark) is single handedly killing the processing >speeds, what ever it's doing is pretty major. Can I turn this off >some how? thanks for your ideas. InvokeWEUndoUPP() isn't called anywhere within WASTE -- it's only defined for (old) clients to call. My guess is that Shark is confused by the lack of symbols for internal functions within the WASTE framework, and reports some time-consuming function as InvokeWEUndoUPP (+ some offset), while in fact it has nothing to do with undo. That's why tinkering with the undo flags has no effect. In order to properly shark WASTE, you need a debug build, compiled with full symbols. -- marco -- It's not the data universe only, it's human conversation. They want to turn it into a one-way flow that they have entirely monetized. I look at the collective human mind as a kind of ecosystem. They want to clear cut it. They want to go into the rainforest of human thought and mow the thing down.