The R Project SVN R

Rev

Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
52864 5807 d 2 h urbaneks /branches/R-exp-R5/ Experinental branch implementing "R5" ideas - extending S language to
create a more intuitive object system
 
52340 5881 d 1 h murdoch /trunk/ Fix strsplit bug, and remove workaround in r52333.  
51841 5935 d 2 h ripley /trunk/src/ more tweaks to headers  
51122 6009 d 17 h falcon /trunk/src/main/ Speed improvement for do_gsub when fixed=TRUE, useBytes=FALSE

When fgrep_one_bytes is called in a loop, we now keep track of the
length of the target argument and avoid repeated strlen calls.
 
51118 6010 d 23 h falcon /trunk/src/main/ Fix slow gsub(pat, rep, s, useBytes=TRUE, fixed=TRUE)

We were using strcat in a way that repeatedly copied the entire string
for each match instead of incrementally adding to the buffer.
 
51117 6010 d 23 h falcon /trunk/src/main/ Avoid strlen on possibly long string for fgrep_one special case  
51116 6010 d 23 h falcon /trunk/src/main/ Avoid stack segfault in gsub, use Calloc instead of alloca in mkCharW

A call to gsub(pat, rep, s) with nchar(s) large caused "Error: segfault
from C stack overflow". Avoiding allocating on the stack resolves
this issue.
 
50880 6051 d 1 h ripley /trunk/src/main/ control lifetime of translateChar in loops  
50479 6095 d 11 h ripley /trunk/src/ back out r50473 (did not work on SunStudio)  
50473 6095 d 21 h ripley /trunk/src/ pre-check alloca for addiitonal safety  
50374 6104 d 3 h ripley /trunk/src/ tidy code up, including what is done in MBCS locales  
50307 6109 d 11 h ripley /trunk/ port r50306 (avoid integer overflow in nns calculation) from R-patched  
50297 6110 d 7 h ripley /trunk/src/ put wtransChar in a public header  
50296 6110 d 8 h ripley /trunk/src/ next phase of merging various regexp functions  
50293 6110 d 23 h ripley /trunk/ allow zero-length input in gregexpr
strip out USE_TRE_FOR_FIXED
 
50289 6111 d 0 h ripley /trunk/src/main/ start merging branches of RE code  
50286 6111 d 5 h ripley /trunk/ add more validity checking of MBCS strings  
50285 6111 d 6 h ripley /trunk/src/main/ use alloca throughout.
add back some warnings about invalid MBCS strings
 
50277 6112 d 1 h ripley /trunk/ use single-byte locales in grep etc where possible  
50270 6112 d 7 h ripley /trunk/src/main/ handle fixed = TRUE, perl = TRUE consistently (neeeded if
USE_TRE_FOR_FIXED is defined)
 

Show All