Discussion List Archives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CIF-JSON new draft

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]
International Union of Crystallography

Scientific Union Member of the International Science Council (admitted 1947). Member of CODATA, the ISC Committee on Data. Partner with UNESCO, the United Nations Educational, Scientific and Cultural Organization in the International Year of Crystallography 2014.

International Science Council Scientific Freedom Policy

The IUCr observes the basic policy of non-discrimination and affirms the right and freedom of scientists to associate in international scientific activity without regard to such factors as ethnic origin, religion, citizenship, language, political stance, gender, sex or age, in accordance with the Statutes of the International Council for Science.