Damn: wouldn't even have time for a gulp of coffee.To extract the last two items from each line into a new line in a new variable took 46 seconds

Using WHICH script?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Damn: wouldn't even have time for a gulp of coffee.To extract the last two items from each line into a new line in a new variable took 46 seconds
Why, ANY handler that does the job, no?Using WHICH script?
Code: Select all
on mouseUp
put "A" & tab & "B" & tab & "C" & tab & "D" & tab & "F" & return into temp
repeat 100000000
put temp after dataSet
end repeat
set the itemDel to tab
put the ticks into aa --start timing
repeat for each line tLine in dataSet
put item -2 to -1 of tLine & return after accum
end repeat
answer the ticks - aa
end mouseUp
It just went crap since it was writing the source file name with it's full path in a repeat loop. Just threw it to the trash as I realized I definitely did something wrong in the code. Actually I didn't take the source data into variable because the data is huge, and my pc wont be able to handle it taking the data into memory; so I think I must have made some mistake for not letting LC to read the data of the source file in a proper way.xoxiwe wrote: ↑Sun Feb 23, 2025 6:09 pmCode: Select all
open file dFile for write -- dFile is the destination text file LC will write the desired output open file sFile for read -- sFile is the source text file that holds the raw data set the itemdel to "," put 1 into tCount repeat until line tCount of sFile is empty put line tCount of sFile into tLine write item -2 to -1 of tLine & cr to file dFile add 1 to tCount end repeat close file dFile close file sFile
I don't know that an m2 mac mini qualifies as a 'severely limited resource pc' such as the OP states having. From the OP:
Being unfamiliar with Mac offerings say, newer than 1998, I went and looked up the mini's specs.my pc might not be able to handle 300-500 mb size data
Code: Select all
M2 mac mini specs -
8-core CPU <- not qualified as 'limited resources'>
10-core GPU <- not qualified as 'limited resources'>
16-core Neural Engine <- not qualified as 'limited resources'>
options, 8GB or 16GB of unified memory <- not qualified as 'limited resources'>
storage options, 256GB to 512GB SSD <- not qualified as 'limited resources'>
Surprisingly, not so much. The OP stated they had a limited pc, one that would struggle with bringing 300-500 MB files in. While I private messaged them to ask for more detailed specs, I had not received an answer to that request as of this post.SparkOut wrote: ↑Thu Feb 27, 2025 8:14 pmI suspect a lot of the delay in the testing bogs did might have been from the updates made in the message box. That would certainly create an overhead in field display updates.
The wait with messages inside the loop is a valuable way to stop the ui locking up though.