[Rd] locale2charset CPU overhead (PR#12633)

From: <fox_jgigtp_at_trashmail.net>
Date: Thu, 28 Aug 2008 21:25:12 +0200 (CEST)

Full_Name: R User
Version: 2.7.2 (default binary)
OS: Windows XP SP2
Submission from: (NULL) (


I have conducted following experiment running simple R script:

for (i in 1:10000) {

   for (j in 1:1000)

profiled R.dll using Intel Vtune and obtained following results!!!

Func. Name              Clocticks
locale2charset	        46,58%	
R_RunWeakRefFinalizer	20,85%	
Rf_eval		        8,77%	

Rf_eval takes only about 9% of CPU time, a huge overhead on checking locale character set!!! It seems that is the problem with family of functions: c(), rbind(), cbind()

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 28 Aug 2008 - 20:22:41 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 29 Aug 2008 - 21:38:56 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive