a library in go - darts

197 views
Skip to first unread message

Andy W. Song

unread,
Mar 28, 2012, 10:03:37 AM3/28/12
to golang-nuts
Hi, 

I wrote a new search library.

https://github.com/awsong/darts.go
This is a GO implementation of Double-ARray Trie System. It's very efficient for static, meaning no update once constructed, dictionary search -- 3 to 4 times faster than go map. It's especially efficient for common prefix search -- costs virtually the same as simple match search.

You are welcome to use it and comment. 

Andy

--
---------------------------------------------------------------
有志者,事竟成,破釜沉舟,百二秦关终属楚
苦心人,天不负,卧薪尝胆,三千越甲可吞吴

roger peppe

unread,
Mar 28, 2012, 11:22:18 AM3/28/12
to Andy W. Song, golang-nuts
just a heads up - your package path ends in ".go" and hence
won't be usable by the go tool.

"darts-go" or "go-darts" would both work better.

John Asmuth

unread,
Mar 28, 2012, 7:31:44 PM3/28/12
to golan...@googlegroups.com
Or go.darts if you want to follow the example set by go.net etc
Message has been deleted

Andy W. Song

unread,
Mar 28, 2012, 7:46:07 PM3/28/12
to Peter Thrun, golan...@googlegroups.com
Thanks guys. I changed it to go-darts.

Andy

On Thursday, March 29, 2012, Peter Thrun <peter...@ymail.com> wrote:

> On Wednesday, March 28, 2012 4:31:44 PM UTC-7, John Asmuth wrote:
>>
>> Or go.darts if you want to follow the example set by go.net etc
>
> The "go.net" name comes from the Google Project Hosting naming scheme for subrepos.  It might not be an example that the Go team is trying to set.

--
Sent from Gmail Mobile

Yves Junqueira

unread,
Mar 29, 2012, 5:40:37 AM3/29/12
to Andy W. Song, golang-nuts, Peter Thrun

Thanks for this Andy.

I would suggest that you consider rewriting the Import function to handle errors appropriately.

--

For the benefit of search engines, the new URL is: https://github.com/awsong/go-darts

Reply all
Reply to author
Forward
0 new messages