Speed up startup time a bit
_collections is the C implementation (and where defaultdict lies), and is as such already loaded when the interpreter is launched. collections imports a bunch of other useless stuff we're not interested in.
This commit is contained in:
parent
d069345c2c
commit
77d1eda074
@ -1,5 +1,5 @@
|
|||||||
import fnmatch
|
import fnmatch
|
||||||
from collections import defaultdict
|
from _collections import defaultdict
|
||||||
|
|
||||||
import botconfig
|
import botconfig
|
||||||
from oyoyo.parse import parse_nick
|
from oyoyo.parse import parse_nick
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from collections import defaultdict
|
from _collections import defaultdict
|
||||||
import math
|
import math
|
||||||
from src import events
|
from src import events
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ import botconfig
|
|||||||
import traceback
|
import traceback
|
||||||
from src import decorators
|
from src import decorators
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from collections import defaultdict
|
from _collections import defaultdict
|
||||||
import threading
|
import threading
|
||||||
import copy
|
import copy
|
||||||
import time
|
import time
|
||||||
|
Loading…
x
Reference in New Issue
Block a user