try destroyDialog gui catch() rollout gui “checkboxes” ( checkbox ckbx0 “checkbox 0” checked:true align:#left orient:#vertical across:2 checkbox …
I will test this: with this fix:
This is the correct way to get the data? format “str:%\n” tp.pairs[2].lines.item[1] The line numbers are not collected, right?
Thank you. Will test it. Here is my attempt(does not work):
Can the dictionary in C# be constructed with 3 elements 1- word 2- line in which the word is found 3- text of that line. Right now the code counts ho…
Thank you. This (Array.IndexOf(words, word) > -1) is the c# equivalent of findItem.
Now I know how to use a file and a string. Thank you. Only thing to solve is to make the code to collect only the passed words. If I pass “kappa” t…
Thank you, Denis! The fastest time I have is 58, the slowest is 80. The code collect all “first” words on all lines. I have edited the 50000LinesOfTe…
Serejah, on my PC your python code is executed for ~120 ms when I collect the line numbers and the text of the lines. With your original code the time…
Thank you. If I find a way to use the python code inside maxscript and if the python code is faster than your c# code then I definitely will change t…
I have to check it against this: import os import sys import time txtFile = “H:\E_Desktop\M1\50000LinesOfText.txt” _alpha = “alpha” _beta = “beta”…
denisT: i have for “kappa*”: count:1866 time:54 heap:10019252L do you need for many patterns? I have: time:88 heap:10017612L kappaArr: 1860 – …
It is the same as this one: Fast search through text file What I have only for finding the Kappa: time:76 heap:9919600L kappaArr: 338
Denis, I can’t send you the text file, sorry. But the string, generated by the maxscript code should be enough for performance testing. Serejah is usi…