| |
|
|
 Jörg Sellmeyer | here have I times the Offlinevariante of Ü-Thread as Textvorlage taken: [...]  everything copy and the program started CompileMarkSeparationVar Text1$ = GetClip$()
Var C& = &GetTickCount
Declare Text$
WhileLoop 10000
Text$=translate$(Text1$,-
,)
Text$=translate$(Text$,|,chr$(1))
Text$=translate$(Text$,!
,!|)
Text$=translate$(Text$,?
,?|)
Text$=translate$(Text$,.
,.|)
Text$=translate$(Text$,
,)
Text$=translate$(Text$,|,
)ich würde hier wahrscheinlich der Optik halber sogar
angeben, unwichtig...
Text$=translate$(Text$,chr$(1),|)
Wend
Print &GetTickCount - C&
C& = &GetTickCount
WhileLoop 10000
Text$ = Translate$(Text1$,-
,)Trennstriche erschlagen
While Match$([!~?~.]
,Text$) >
Text$ = Translate$(Text$,$Match,Left$($Match,1) + |)alle Zeilenumbrüche mit Satzendezeichen zum Sichern umwandeln
Wend
Text$ = Translate$(Text$,
,)alle Zeilenumbrüche raus
Text$ = Translate$(Text$,$Match,Left$($Match,1) +
)Zeilenumbrüche zurückschreiben
Wend
Print &GetTickCount - C&
WaitInput
End
in the Interpreter is the upper Variante by me ca 2x faster.  |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 11/23/07 ▲ |
|
|
|
|
 | is clear, The creep are in that Native verlagert and it'll no regexp used. therefore pointed I Yes on these einfacherer method there. |
|
|
| |
|
|