• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Questions on approach
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Questions on approach


  • Subject: Re: Questions on approach
  • From: Brian Christmas <email@hidden>
  • Date: Tue, 16 Nov 2010 15:57:51 +1100

Grin. Yeah, but find 28,000, of them in a 30,000 character string, and replace with another character in the same position in a mail message, and color it, and you're looking at .093 x 20,000 = 1/2 hour plus (or am I missing something in your suggestion? Can you post the code?).

My way drops that to a few seconds, vanilla. (which is what the client wanted).

In Alex's case, he's not looking for a defined string, merely getting every 4th field in every row. I think his bottleneck is reading the nth part of his reference string 'MyTable' when n gets large. If he wants to use vanilla, then the only way I can see is to split the reference string into chunks so n never becomes too large.

It's an interesting dilemma.

Regards

Santa

On 16/11/2010, at 3:31 PM, Christopher Stone wrote:

Hey Brian,

I just tried splitting a 450K character document with Text Item Delimiters and than getting the length of the pieces with a +1 offset.

0.093 Seconds to do the split, get the length of the pieces, and return the 1st "•" as a test.

I'm not sure if this methodology will work for you, but I'd do damn near anything to not iterate through characters - even learn some Perl.

--Chris 

And what, you ask, was the beginning of it all?
And it is this......
Existence that multiplied itself
For sheer delight of being
And plunged with numberless trillions of forms
So that it might
find
itself
innumerably

Sri Aurobindo





 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Questions on approach
      • From: Alex Zavatone <email@hidden>
    • Re: Questions on approach
      • From: Alex Zavatone <email@hidden>
References: 
 >Questions on approach (From: Alex Zavatone <email@hidden>)
 >Re: Questions on approach (From: Brian Christmas <email@hidden>)
 >Re: Questions on approach (From: Christopher Stone <email@hidden>)
 >Re: Questions on approach (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: Questions on approach
  • Next by Date: Re: Questions on approach
  • Previous by thread: Re: Questions on approach
  • Next by thread: Re: Questions on approach
  • Index(es):
    • Date
    • Thread