Re: COMPARE HLL/ASM



På Tue, 25 Dec 2007 21:29:16 +0100, skrev Charles Crayne <ccrayne@xxxxxxxxxx>:

On Tue, 25 Dec 2007 18:13:01 +0100
"Wolfgang Kern" <nowhere@xxxxxxxx> wrote:

I think we've done something similar a few years ago.

Indeed we have. So let's try something a bit more modern this time:
1. The string encoding is UTF8.
2. The test strings will include non-ascii characters.
3. The routine is passed two parameters
A. A pointer to the UTF8 string
B. The physical length, in bytes, of the UTF8 string.
4. The routine must return the nu-mber of characters in the string.

-- Chuck


No. It should be more interessting. Optimizing insignificant tasks like that is 100% useless anyway. Second, after a few hours sleep I realize he raised a challange, and is setting all the groundrules, so that is a bit strange, and then Wolfgang came and spoiled the game.

For once in the history of codeoptimization, lets make it a worthy task. Its only fair that I be the one to select the weapon of choise, and I think it should be something involving, worthy the efforts.

First it should be a task for which there does not exist a stock solution...a problem that has not been subject to such optimization before. I mean Wolfgang pulled it straight out of his arsenal, that means its likly known to compilerauthours, and thats a good guess since the task of speeding up such a routine has little purpose whatsoever for allmost any thinkable scenario.

We need a problem for which there is no common known solution. I need some more sleep, and then I will start thinking about what problem could be a worthy fit.

I get back to you.

--
.



Relevant Pages

  • Re: COMPARE HLL/ASM
    ... The string encoding is UTF8. ... The test strings will include non-ascii characters. ... The routine must return the number of characters in the string. ...
    (alt.lang.asm)
  • Re: COMPARE HLL/ASM
    ... The string encoding is UTF8. ... The test strings will include non-ascii characters. ... The routine must return the number of characters in the string. ...
    (alt.lang.asm)
  • Re: Read text file to Temp file and apply formating and color chan
    ... I call this routine from the OpenFileDialog; ... public static string LayoutInput ... int txPos; ... int charactersTillPoint; ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Programmatically update forms in design view
    ... The routine that I am running is done before the creation of an MDE. ... I have a problem with updating a label on multiple forms. ... Dim Erm As String, fm As String, MyDB As Database, rs As Recordset, e As ...
    (microsoft.public.access.forms)
  • Re: File not found
    ... I think this routine can be modified but I am hung up on the portion of the routine where is tries to open the sLocal file. ... ByVal szFileName As String, _ ... Dim hfile As Long ... If DownloadFile(sSourceUrl, sLocalFile) Then ...
    (microsoft.public.vb.general.discussion)