What is the cost of calling require for something that already have been loaded?

2011-11-12 Thread Nicolas Buduroi
I'm using a function in Lobos to automatically load the backend code
associated to a specific database and wonder if I should track what is
loaded to avoid repeatedly calling `require`? This isn't an issue
currently as performance isn't a problem for this library, but this
might change in the future.

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: What is the cost of calling require for something that already have been loaded?

2011-11-12 Thread Kevin Downey
clojure tracks this info in a ref

On Sat, Nov 12, 2011 at 6:47 PM, Nicolas Buduroi nbudu...@gmail.com wrote:
 I'm using a function in Lobos to automatically load the backend code
 associated to a specific database and wonder if I should track what is
 loaded to avoid repeatedly calling `require`? This isn't an issue
 currently as performance isn't a problem for this library, but this
 might change in the future.

 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with your 
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en



-- 
And what is good, Phaedrus,
And what is not good—
Need we ask anyone to tell us these things?

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en