发明名称 METHOD AND SYSTEM FOR IMPLEMENTING AN ARRAY USING DIFFERENT DATA STRUCTURES
摘要 Disclosed are a method and system for implementing an array data type of a programming language using various data structures. The disclosed method includes a plurality of implementations in which the array data type may be implemented. The implementations provide an efficient way to retrieve elements from the array, especially in the order they are inserted into the array. The data structures also minimize the computing resources required to manage and access the array. The disclosed technique also selects one of the many implementations based on criteria such as access pattern or size of the array.
申请公布号 US2014156708(A1) 申请公布日期 2014.06.05
申请号 US201213691622 申请日期 2012.11.30
申请人 Facebook, Inc. 发明人 Adams Keith;Paroski Andrew John;Evans Jason Owen
分类号 G06F17/30 主分类号 G06F17/30
代理机构 代理人
主权项 1. A method comprising: creating, in a memory of a computer system, a first data structure having a plurality of contiguous buckets of the memory, the buckets configured to store key-value pairs in the order in which the key-value pairs are inserted into an array; and creating, in the memory of the computer system, a second data structure having a plurality of slots of the memory, each of the slots corresponding to a particular key of the key-value pairs, each of the slots configured to store a pointer that points to a bucket of the first data structure containing a value of a key to which the slot corresponds.
地址 Menlo Park CA US
您可能感兴趣的专利