From fox_jgigtp at trashmail.net  Thu Aug 28 21:25:12 2008
From: fox_jgigtp at trashmail.net (fox_jgigtp at trashmail.net)
Date: Thu, 28 Aug 2008 21:25:12 +0200 (CEST)
Subject: [Rd] locale2charset CPU overhead (PR#12633)
Message-ID: <20080828192512.CC4D2282C76C@mail.pubhealth.ku.dk>

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


Hello!

I have conducted following experiment running simple R script:

for (i in 1:10000) {
    a<-0
   for (j in 1:1000)
     a<-c(a,j)
}

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()



[Rd] locale2charset CPU overhead (PR#12633)
fox_jgigtp at trashmail.net