similar to: Avoiding deep copies

Displaying 20 results from an estimated 5000 matches similar to: "Avoiding deep copies"

2002 Nov 28
2
[LLVMdev] Breakage in CVS?
The following function produces a segv when the begin() is taken from vmap, the ScalarMap... bool StaticMemAnalysis::isSingleMalloc(DSGraph* theGraph,DSNode* theNode) { int count = 0; std::map<Value*, DSNodeHandle>& vmap = theGraph->getScalarMap(); for (std::map<Value*, DSNodeHandle>::iterator i = vmap.begin(); i != vmap.end(); ++i) { if(i->second.getNode() ==
2001 Sep 24
3
reading in ASCII files
I wonder if there is a way to read in CSV files so that - certain fields within each record (line) are ignored, i.e. not converted to columns in the output data frame - factors/levels are created automatically: often, the possible labels are known in advance and could immediately be converted. This would save a lot of memory and time for bigger files, I assume. Johann
2005 Feb 24
1
Do environments make copies?
I am using environments to avoid making copies (by keeping references). But it seems like there is a hidden copy going on somewhere - for example in the code fragment below, I am creating a reference to "y" (of size 500MB) and storing the reference in object "data". But when I save "data" and then restore it in another R session, gc() claims it is using twice the
2005 Feb 24
1
Do environments make copies?
I am using environments to avoid making copies (by keeping references). But it seems like there is a hidden copy going on somewhere - for example in the code fragment below, I am creating a reference to "y" (of size 500MB) and storing the reference in object "data". But when I save "data" and then restore it in another R session, gc() claims it is using twice the
1999 Jul 16
1
R-0.64.2 ssize_t not defined in src/unix/sock.h
I though I should let you all know of this: Trying to build R-0.62.2 on a SunOS xxxx 4.1.4 2 sun4m machine using gcc (gcc version egcs-2.91.57 19980901 (egcs-1.1 release)): gnumake[2]: Entering directory `/tmp_mnt/xxxx/src/R-0.64.2/src/unix' gcc -g -O2 -I../include -I../../src/include -c Rsock.c -o Rsock.o In file included from Rsock.c:8: sock.h:21: parse error before `Sock_read'
2001 Oct 02
3
Accessing just the value of an object but not the attributes
I have the feeling that this is a dumb question but oh well ... When I have an object x with several attributes, y <- x will make a copy of x with all the attributes included. What if I just want y to get the value assigned but nothing else (no class, names, dim or other attributes)? Johann -- Phone/FAX/Adr/PGPkey ... at http://www.ai.univie.ac.at/~johann
2001 Sep 28
1
binary coding of NA, Nan etc.
I wonder which binary codings to use for the different "special" values used in R. I want to create binary coded files of double, int, and string values that should get read into R using readBin. Now, what is the correct way to code NA, NaN, Inf, and -Inf for these types? The documentation for read/writeBin doesnt contain any info on that ... (for int and string, there probably is only
2002 Mar 05
1
dribble for R?
Is there something like the LISP function dribble in R? This would log all the output to a file but still show it on the terminal too. sink just diverts the output, but I dont see a way to do what dribble would do? Johann -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send
2001 May 09
7
R-Quant
Greetings, Does anyone know if R-Quant, http://www.smartquant.com/ an outgrowth of the statistical package "R"? Bill Vedder -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the
2010 Oct 23
1
Plans for tighter integration of reference classes in R.
Hello Everyone! Here are a couple of thought/questions on refClasses integration in R core functionality. First, coexistence with S4: > X <- setRefClass("classX", fields = c("a", "b"), + representation = list(c = "character")) > x <- X$new() > x at c <- "sss" > x An object of class "classX"
2006 Apr 30
4
Migration, BigInts, and string lengths
Howdy Y''all, I was thrilled to recently discover migrations, as that framework addresses a common problem in an elegant way. I have, however, gotten tripped up a bit as I''ve worked with them. The first problem I encountered was that, though I was using a BigInt data type in a field in my dev database, my unit tests were failing because when I copied the schema from the dev
2002 Nov 28
0
[LLVMdev] Breakage in CVS?
> The following function produces a segv when the begin() is taken from > vmap, the ScalarMap... > int count = 0; > std::map<Value*, DSNodeHandle>& vmap = theGraph->getScalarMap(); Are you sure "theGraph" is not null at this point? -Chris > for (std::map<Value*, DSNodeHandle>::iterator i = vmap.begin(); i > != vmap.end(); ++i) { >
2002 Nov 28
2
[LLVMdev] Breakage in CVS?
On Thu, 28 Nov 2002, Chris Lattner wrote: > > > The following function produces a segv when the begin() is taken from > > vmap, the ScalarMap... > > int count = 0; > > std::map<Value*, DSNodeHandle>& vmap = theGraph->getScalarMap(); > > Are you sure "theGraph" is not null at this point? yes... that call returns sucessfully. the segfault
2013 Sep 05
1
Why does duplicate() make deep copies?
Some experimentation with the below function should convince you that the runtime of the bit inside sys.time is proportional to size*number*times. I think it should only be proportional to number*times. The function is only manipulating a list of references to vectors and not trying to make changes to the vectors themselves. overcopying <- function(size, number, times) { #Make a list of
2001 May 16
7
Naive Bayes Classifier
Dear r-users, I am looking for an implementation of the Naive Bayes classifier for a multi-class classification problem. I can not even find the Naive Bayes classifier for two classes, though I can not believe it is not available. Can anyone help me? Uschi -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read
2012 Oct 26
0
[LLVMdev] Data sharing between two ALUs and avoiding illegal copies
Hi, I'm working on support for the latest generation of AMD GPUs (Southern Islands) in the R600 backend, and I need some advice on how to handle interactions between two different ALUs. The processors on Southern Islands GPUs are grouped into compute units, which contain 1 Scalar ALU (sALU) and 64 Vector ALUs (vALU). The sALU is mainly responsible for flow control (implemented using
2014 Jun 17
0
PATCH: Avoiding extra copies (NAMED bumped) with source(..., print.eval=FALSE) ...and with print.eval=TRUE?
OBJECTIVE: To update source(..., print.eval=FALSE) to not use withVisible() unless really needed. This avoids unnecessary increases of reference counts/NAMED introduced by withVisible(), which in turn avoids unnecessary memory allocations and garbage collection overhead. This has an impact on all source():ed scripts, e.g. pre-allocation of large matrices to save memory does *not always* help in
2018 Sep 28
0
About current Icecast development -- developer edition
Good afternoon, earlier today I wrote a mail to the user mailing list about current status of the current development. As pointed out by Mr. Rücker, it seems to be good to also write to this list with a bit more technical details. Please note that this mail represents current master branch ("2.5.x"). We do recommend to use current stable branch ("2.4.x") for production.
2005 Dec 07
2
[Bug 3305] New: -t copies always too many files to mounted windows volume -c copies no files
https://bugzilla.samba.org/show_bug.cgi?id=3305 Summary: -t copies always too many files to mounted windows volume -c copies no files Product: rsync Version: 2.6.7 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P3 Component: core AssignedTo:
2006 Jun 06
1
stack level too deep
Iam new to ferret Iam trying to do a sample application on ferret this is my code: class SearchController < ApplicationController require ''ferret'' include Ferret index = Index::Index.new(:path => ''/path/to/index'') def list end def index index << {:title => "Programming Ruby", :content => "blah blah blah"}