[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
842 ms JSON.parse('["num(err)","num(err)","num(err)",...]') with parseFloat of substrings
781 ms JSON.parse('["num(err)","num(err)","num(err)",...]') with parseFloat of substrings
877 ms JSON.parse('["num(err)","num(err)","num(err)",...]') with parseFloat of substrings
895 ms JSON.parse('["num(err)","num(err)","num(err)",...]') with parseFloat of substrings
858 ms JSON.parse('["num(err)","num(err)","num(err)",...]') with parseFloat of substrings
590 ms JSON.parse([num,err,num,err,num,err,num,err])
551 ms JSON.parse([num,err,num,err,num,err,num,err])
552 ms JSON.parse([num,err,num,err,num,err,num,err])
560 ms JSON.parse([num,err,num,err,num,err,num,err])
584 ms JSON.parse([num,err,num,err,num,err,num,err])
Reply to: [list | sender only]
Re: CIF-JSON new draft
- Subject: Re: CIF-JSON new draft
- From: Robert Hanson <hansonr@xxxxxxxxxx>
- Date: Mon, 1 May 2017 16:04:12 -0500
- DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stolaf.edu; s=stolaf;h=mime-version:in-reply-to:references:from:date:message-id:subject:to;bh=oofiqftjBBK9oYyJXFde2uVhW6cBOmAo/I67WgE+FVo=;b=H8XPxuQcPfump+Uoq9DB41DbZIdAmR9yTBqpirFN0kLEl1WOv8WdnFLg5bICKSBt9XUdueCt/QzuUQvlIf7/Hi9mvEe0w/neTDkcUIg0YLhflKced9Kd738tQDDGfTvZWc38cz0XWK7A8PRS7vdU6itatvLrnTlQJGJtMDWXTes=
- In-Reply-To: <CAF_YUvXiWoF7gTB_hn+1+4WtQBr2us2kHLutPLZEwAMYxMBamw@mail.gmail.com>
- References: <CAM+dB2ey9kKLoZY=WE7Uy-fiWTGhQaFx7fcgODcYfhrNPwXkQw@mail.gmail.com><CACaHzQU-NPvorqZzARhnsTLaAU_tqpp9v56fJss9C9NG--ps0A@mail.gmail.com><MWHPR04MB051226521AF5A8F60AA4BC67E0140@MWHPR04MB0512.namprd04.prod.outlook.com><CACaHzQV8yQFetF-oLv6nhn6VtAjfkYUsNrgwjfCZoDo10Drh=w@mail.gmail.com><CAF_YUvUEOaCiPpoZ8d96HpxScgiJsGBQAO2RA7jVMFBUmWEU_w@mail.gmail.com><CACaHzQXZLL77jBMdKhfJHXg8JkxUkwH29MGKyGsYfdfK_2BABA@mail.gmail.com><CAF_YUvUeKG-WSf+yZuNtVUdDBd7Yn=_PnJOKYuzOJACff6V1SA@mail.gmail.com><CAF_YUvXiWoF7gTB_hn+1+4WtQBr2us2kHLutPLZEwAMYxMBamw@mail.gmail.com>
Sorry, having too much fun here!
1,000,000 elements;842 ms JSON.parse('["num(err)","num(err)","num(err)",...]') with parseFloat of substrings
781 ms JSON.parse('["num(err)","num(err)","num(err)",...]') with parseFloat of substrings
877 ms JSON.parse('["num(err)","num(err)","num(err)",...]') with parseFloat of substrings
895 ms JSON.parse('["num(err)","num(err)","num(err)",...]') with parseFloat of substrings
858 ms JSON.parse('["num(err)","num(err)","num(err)",...]') with parseFloat of substrings
590 ms JSON.parse([num,err,num,err,num,err,num,err])
551 ms JSON.parse([num,err,num,err,num,err,num,err])
552 ms JSON.parse([num,err,num,err,num,err,num,err])
560 ms JSON.parse([num,err,num,err,num,err,num,err])
584 ms JSON.parse([num,err,num,err,num,err,num,err])
So if we were delivering uncertainties with every number as a string, it's somewhat slower than if we delivered twice as many numbers.
_______________________________________________ cif-developers mailing list cif-developers@iucr.org http://mailman.iucr.org/cgi-bin/mailman/listinfo/cif-developers
Reply to: [list | sender only]
- References:
- CIF-JSON new draft (James Hester)
- Re: CIF-JSON new draft (Marcin Wojdyr)
- RE: CIF-JSON new draft (Bollinger, John C)
- Re: CIF-JSON new draft (Marcin Wojdyr)
- Re: CIF-JSON new draft (Robert Hanson)
- Re: CIF-JSON new draft (Marcin Wojdyr)
- Re: CIF-JSON new draft (Robert Hanson)
- Re: CIF-JSON new draft (Robert Hanson)
- Prev by Date: Re: CIF-JSON new draft
- Next by Date: Re: CIF-JSON new draft
- Prev by thread: Re: CIF-JSON new draft
- Next by thread: Re: CIF-JSON new draft
- Index(es):