search for: greedily

Displaying 20 results from an estimated 52 matches for "greedily".

2013 Nov 01
2
Replace element with pattern
...th one column and several rows of the form. "Peak Usage : init:2359296, used:15859328, committed:15892480, max:50331648Current Usage : init:2359296, used:15857920, committed:15892480, max:50331648|-------------------|" I tested the regex Current.*?[\|] in an online tester which greedily matches upto the first 'pipe' character Current Usage : init:2359296, used:15857920, committed:15892480, max:50331648| This is what I want. I tried to replace the entire rows using apply( y, 1, function(x) gsub(x,"Current.*?[/|]",x)) which didn't work. How is this done...
2008 Jan 08
1
Dovecot indexing questions
...I had: When an email arrives in INBOX using procmail (which delivers to my Maildirs), and I see it in Dovecot, when I next do a search (IMAP SEARCH TEXT) of that folder, the search takes a long time. Successive searches are lickety-split. My question is: Can there be an option to "index greedily"? As soon as Dovecot sees the message, I'd like it to update the Squat index. That way, searches are always fast. I guess this implies a small performance hit - namely, that my IMAP server spends CPU and disk time indexing every message at the first time it is seen rather than being...
2009 Apr 01
1
Recommended packages for a statistician
...m the IT department (user cannot download themselves). I intend to request installation of the latest version of R plus the 23 Cran task views. As a statistician what are the recommended packages or packages that statisticians using R recommend to install. I have started a new position and want to (greedily) get everything that I may or may not use as I want to avoid multiple requests to our IT dept. Thanks [[alternative HTML version deleted]]
2007 Jun 27
1
Active Scaffold controllers created dynamically at runtime?
...o create a plugin for all of my projects that dynamically creates an active_scaffold controller for each model. It would essentially be like a scaffold_all_models for active_scaffold. I believe the original scaffold extensions mix in functionality to ActionController::Base, whereas active_scaffold (greedily) requires a separate controller for each model it scaffolds... hence my attempt to create dynamic controllers. PS: If anyone has already created a plugin like this, I would *gladly* just use yours :-) Thanks, Mike Laurence -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~-----...
2017 Sep 15
4
RFC: Trace-based layout.
...step approach to layout. It produces chains working from inner to outer loops. Unlike a trace, a chain may contain non-fallthrough edges. This causes problems with loop layout. The main problems with loop layout are: loop rotation and cold blocks in a loop. Overview of proposed solution: Phase 1: Greedily produce a set of traces through the function. A trace is a list of blocks with each block in the list falling through (possibly conditionally) to the next block in the list. Loop rotation will occur naturally in this phase via the triangle replacement algorithm below. Handling single trace loops re...
2019 Jun 17
2
Significant code difference with a split call to opt
...uences with [opt -O3 -debug-pass=Arguments] and diff the outputs. Please see the attached script. The differences seem to be mainly on variable indices (are they randomized?); on some test (namely jacobi-2d-imper) I have seen calling convention differences. I'd like to optimize programs by greedily selecting optimizations, making a call to opt at each step. If I don't have equality between the two methods, I can't be sure that the sequence I'm building will make much sense. Sébastien Michelland On 6/14/19 4:49 PM, David Greene wrote: > Do you have more information? What w...
2019 Jun 26
2
Significant code difference with a split call to opt
...and diff the outputs. Please see the attached script. > > The differences seem to be mainly on variable indices (are they > randomized?); on some test (namely jacobi-2d-imper) I have seen calling > convention differences. > > I'd like to optimize programs by greedily selecting optimizations, > making a call to opt at each step. If I don't have equality between the > two methods, I can't be sure that the sequence I'm building will make > much sense. > > Sébastien Michelland > > On 6/14/19 4:49 PM, David Gree...
2016 Mar 09
2
[CodeGen] PeepholeOptimizer: optimizing condition dependent instrunctions
Hi, I find it's quite strange how condition dependent instructions are processed in PeepholeOptimizer::runOnMachineFunction: 01577 if ((isUncoalescableCopy(*MI) && 01578 optimizeUncoalescableCopy(MI, LocalMIs)) || 01579 (MI->isCompare() && optimizeCmpInstr(MI, &MBB)) || 01580 (MI->isSelect() && optimizeSelect(MI,
2016 Mar 10
2
[CodeGen] PeepholeOptimizer: optimizing condition dependent instrunctions
...twice analyzeCompare. Is that it? This function is probably cheap so I wouldn't be too concerned about that. If I turn out to be wrong, then yes we can think of a better mechanism. Any thoughts why it's implemented in such way. The idea of the peephole optimizer is top-down approach and greedily applied optimization. I have to admit I don't see the concern with the instruction being condition dependent; we don't want to call optimizeCondBranch :). I believe I missed your point. Cheers, -Quentin Kind regards, Evgeny Astigeevich _______________________________________________ LL...
2017 Sep 18
0
RFC: Trace-based layout.
...s chains working from inner to outer loops. Unlike a trace, a chain may > contain non-fallthrough edges. This causes problems with loop layout. The main > problems with loop layout are: loop rotation and cold blocks in a loop. > > Overview of proposed solution: > > Phase 1: > Greedily produce a set of traces through the function. A trace is a list of > blocks with each block in the list falling through (possibly conditionally) to > the next block in the list. Loop rotation will occur naturally in this phase via > the triangle replacement algorithm below. Handling single...
2007 Jun 08
1
evaluating variables in the context of a data frame
Given > D = data.frame(o=gl(2,1,4)) this works as I expected: > evalq(o, D) [1] 1 2 1 2 Levels: 1 2 but neither of these does: > f <- function(x, dat) evalq(x, dat) > f(o, D) Error in eval(expr, envir, enclos) : object "o" not found > g <- function(x, dat) eval(x, dat) > g(o, D) Error in eval(x, dat) : object "o" not found What am I doing wrong?
2017 Sep 19
2
RFC: Trace-based layout.
...working from inner to outer loops. Unlike a trace, a chain > may > contain non-fallthrough edges. This causes problems with loop layout. The > main > problems with loop layout are: loop rotation and cold blocks in a loop. > > Overview of proposed solution: > > Phase 1: > Greedily produce a set of traces through the function. A trace is a list of > blocks with each block in the list falling through (possibly > conditionally) to > the next block in the list. Loop rotation will occur naturally in this > phase via > the triangle replacement algorithm below. Handl...
2002 Sep 13
0
Rsync 2.5.5 (Digital Unix 4.0f) Large Filesets...
...#39;m also seeing the following but I have a suspicion this maybe down to resource problems on the remote system - I know it was running rather low on swap - I'm going to re-run the tests once I've changed the swapping algorithm to over-committent mode (so it does not pre-allocate memory so greedily). rsync: connection unexpectedly closed (9562065 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(150) rsync: connection unexpectedly closed (28 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(150) 3. I've tried to set...
2017 Sep 19
0
RFC: Trace-based layout.
...to outer loops. Unlike a trace, a chain may >> contain non-fallthrough edges. This causes problems with loop layout. The main >> problems with loop layout are: loop rotation and cold blocks in a loop. >> >> Overview of proposed solution: >> >> Phase 1: >> Greedily produce a set of traces through the function. A trace is a list of >> blocks with each block in the list falling through (possibly conditionally) to >> the next block in the list. Loop rotation will occur naturally in this phase via >> the triangle replacement algorithm below. Han...
2017 Aug 27
6
regex - optional part isn't considered in replacement with gsub
Hello, I need some help with regex. I have this to sentences. I need to extract both "49MU6300" and "LE32S5970" and put them in a new colum "SKU". A) SMART TV UHD 49'' CURVO 49MU6300 B) SMART TV HD 32'' LE32S5970 DataFrame for testing: ecommerce <- data.frame(a = c(1,2), producto = c("SMART TV UHD 49'' CURVO 49MU6300",
2019 Jun 14
2
Significant performance difference with a split call to opt
Hello list, This is a follow-up from a question I asked last month. I'm evaluating the performance of two pass sequences that resemble (but are not) -O3. With -O3, -debug-pass=Structure prints several independent blocks that seem to represent several calls to opt. I focused on two of these blocks, say S1 and S2, and compared the following optimization methods: 1. Executing them
2017 Mar 17
2
Support for user defined unary functions
...> wrote: > Jim, > > One more note about precedence. It prevents a solution like the one you > proposed from solving all of the problems you cited. By my reckoning, a > "What comes next is for NSE" unary operator needs an extremely low > precedence, because it needs to greedily grab "everything" (or a large > amount) that comes after it. Normal-style unary operators, on the other > hand, explicitly don't want that. > > From what I can see, your patch provides support for the latter but not the > former. > > That said I think there are tw...
2017 Mar 17
2
Support for user defined unary functions
...> wrote: > Jim, > > One more note about precedence. It prevents a solution like the one you > proposed from solving all of the problems you cited. By my reckoning, a > "What comes next is for NSE" unary operator needs an extremely low > precedence, because it needs to greedily grab "everything" (or a large > amount) that comes after it. Normal-style unary operators, on the other > hand, explicitly don't want that. > > From what I can see, your patch provides support for the latter but not the > former. > > That said I think there are tw...
2017 Mar 17
3
Support for user defined unary functions
I agree there is no reason they _need_ to be the same precedence, but I think SPECIALS are already have the proper precedence for both unary and binary calls. Namely higher than all the binary operators (except for `:`), but lower than the other unary operators. Even if we gave unary specials their own precedence I think it would end up in the same place. `%l%` <- function(x) tail(x, n =
2017 Mar 17
0
Support for user defined unary functions
Jim, One more note about precedence. It prevents a solution like the one you proposed from solving all of the problems you cited. By my reckoning, a "What comes next is for NSE" unary operator needs an extremely low precedence, because it needs to greedily grab "everything" (or a large amount) that comes after it. Normal-style unary operators, on the other hand, explicitly don't want that. >From what I can see, your patch provides support for the latter but not the former. That said I think there are two issues here. One is can use...