internals

How does Lucene/Solr achieve high performance in multi-field / faceted search?

跟風遠走 提交于 2019-12-03 02:58:16
Context This is a question mainly about Lucene (or possibly Solr) internals. The main topic is faceted search , in which search can happen along multiple independent dimensions (facets) of objects (for example size, speed, price of a car). When implemented with relational database, for a large number of facets multi-field indices are not useful, since facets can be searched in any order, so a specific ordered multi-index is used with low chance, and creating all possible orderings of indices is unbearable. Solr is advertised to cope well with the faceted search task, which if I think correctly

What happens internally when a file path exceeds approx. 32767 characters in Windows?

扶醉桌前 提交于 2019-12-03 02:18:18
问题 In Windows (assume 2000 onwards), a file path can be at most approximately 32767 characters in length. This limitation exists due to the internal handling with UNICODE_STRING in the native API (also on the kernel side, in drivers etc). So far so good. I know the theory behind that part. The reason for the limit is that the the Length and MaximumLength members of UNICODE_STRING count the number of bytes in the Buffer , but are 16 bit unsigned integers themselves. I also know why the limit is

How can I learn more about Python’s internals? [closed]

╄→尐↘猪︶ㄣ 提交于 2019-12-03 01:43:37
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I have been programming using Python for slightly more than half an year now and I am more interested in Python internals rather than using Python to develop applications. Currently I am working on porting a few libraries from Python2 to Python3. However, I have a rather abstract view on how to make port stuff

Understanding how .Internal C functions are handled in R

好久不见. 提交于 2019-12-03 01:38:10
问题 I wonder if anyone can illustrate to me how R executes a C call from an R command typed at the console prompt. I am particularly confused by R 's treatment of a) function arguments and b) the function call itself. Let's take an example, in this case set.seed() . Wondering how it works I type the name in at the prompt, get the source (look here for more on that), see there is eventually a .Internal(set.seed(seed, i.knd, normal.kind) , so dutifully look up the relevant function name in the

Database Internals - Where to Begin? [closed]

若如初见. 提交于 2019-12-03 01:31:02
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . So lets say that you want to learn some stuff about database internals. What's the best source code to look at? the best books to buy? I was talking about this with a buddy the other day and he recommended: Art of Computer Programming, Volume 3: Sorting and Searching What other books would help me learn about all

Where can I find information about Javascript engine internals? [closed]

半世苍凉 提交于 2019-12-03 00:51:09
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I'm looking for books / articles / papers on Javascript engine internals along the lines of the many reference works about the JVM internals, CLR internals, etc. I could (and likely will) look at the source code for JavaScriptCore and V8/Chromium, but if there's a book out there or some other "guided tour"

Spring transaction internals

随声附和 提交于 2019-12-02 21:20:40
The situation is as follows: Method1 has four database update methods in it. The Method1 is annotated using the Spring transaction management semantics. Method2 has a database read method in it and it is invoked after Method1 has finished executing all its database updates. Method2 is also annotated using the Spring transaction semantics. There's a web request that comes in, the controller intercepts the request and invokes method1 and then method2. A transaction is wrapped around the web-request as well. What I am interested in knowing is: 1.How does Spring know to commit the database updates

Where did the text segment get its name?

♀尐吖头ヾ 提交于 2019-12-02 20:36:31
Traditional assembler, and higher level compilers work with several memory segments , according to intended use. Hence, there is a data segment, a stack segment, a bss, and text segment. The text segment is also called the code segment. Text segment? For machine code ? I have asked all the old-timers I could find, how something as unreadable as machine code came to be know as the "text segment". Every one of them agreed that, that was really what it was called, but none of them seemed to be surprised by it. And no one could offer an explanation. Here's your chance to show off your geek history

If Java's garbage collector moves objects, what is Object.hashCode and System.identityHashCode?

老子叫甜甜 提交于 2019-12-02 20:10:31
I've often heard that these methods ( Object.hashCode and System.identityHashCode ) return the address of the object, or something computed quickly from the address; but I'm also pretty sure the garbage collector moves and compacts objects. Since the hash code cannot change, this presents a problem. I know this is not something one needs to know for everyday work, but I'd like to understand the internals. So, does anyone know how this is implemented in Java? Or .NET, since they are probably similar. Chris Shain .NET's implementation is intentionally not published (and when you attempt to

Benefits of internal iterations

旧街凉风 提交于 2019-12-02 18:52:14
问题 I just wanted to know, what the real benefits of Internal vs External Iterations are and why it is better to use internal operations (that's what I heard at least). Is it also possible to delete elements of a collection while internally iterating over the collection? Like in the code example: I know that the code readability of internal iterations is better, but are there some other benefits like performance improvements? //List with Strings of Fruit-Names Iterator i = aList.iterator();