• 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: Problem with reading 4-byte floats from file on Intel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with reading 4-byte floats from file on Intel


  • Subject: Re: Problem with reading 4-byte floats from file on Intel
  • From: Philip Aker <email@hidden>
  • Date: Fri, 07 Dec 2007 01:26:20 -0800

On 2007-12-06, at 10:27, email@hidden wrote:

Problem is already solved, I wrote a quick C command line program to do it.

As an aside I'd just like to mention that recently Nigel Garvey and I conducted timing tests sorting lines of text read in from files on disk. We compared AppleScript, Tcl, and some C code using CFArray and CFDictionary. The CoreFoundation code was on average ~5 times faster than either AppleScript or Tcl for a test file of about 1 Meg.


The CF facilities won't make any difference for your float situation but if you ever have to deal with strings or other types of data more complex than arrays of ints and floats, the CoreFoundation framework utilities are an excellent choice.

Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

_______________________________________________
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
References: 
 >Re: Problem with reading 4-byte floats from file on Intel (From: email@hidden)
 >Re: Problem with reading 4-byte floats from file on Intel (From: "Mark J. Reed" <email@hidden>)
 >Re: Problem with reading 4-byte floats from file on Intel (From: email@hidden)

  • Prev by Date: Re: Another question on dates and times
  • Next by Date: Re: What makes appleScript so easy
  • Previous by thread: Re: Problem with reading 4-byte floats from file on Intel
  • Next by thread: Re: Problem with reading 4-byte floats from file on Intel
  • Index(es):
    • Date
    • Thread