Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Results tagged with performance
Search options questions only
not deleted
user 234107
Performance is a subset of Optimization: performance is the goal when you want the execution time of your program or routine to be optimal.
5
votes
0
answers
136
views
Resolve an entire NTFS Master File Table's worth of File Records to Absolute Paths
This is related to my previous question.
This is it, the full working code that resolves all file record segments in a Master File Table to absolute file paths. It is completely working and seems to w …
1
vote
0
answers
100
views
Python script that maps natural numbers to lattices in a spiral-like manner
I don't know if it can be more efficient, but if I have hit the performance bottleneck, perhaps the script can be more concise and readable, and I don't like the way the variables are organized and shared …
4
votes
1
answer
385
views
Python IP geolocation script
These are two Python scripts I wrote to convert a GIGANTIC text file of over 100MiB in size (the current version is 152.735MiB) to an SQLite3 database to use for geolocation, and the script that queri …
6
votes
1
answer
343
views
Python: determine whether one string can be obtained by changing one character in the middle...
This script solves a simple problem:
Input two strings differ one character or zero characters in length, return true if the following conditions are met:
1, They must start with same character and en …
1
vote
0
answers
13
views
Python script that turns a gigantic text file into an IP geolocation database
I have written a Python script that turns a gigantic text file into a SQLite3 database.
The text file is truly gigantic, it is 133MiB or 140,371,572 bytes in size, and contains 140,371,572 characters …
5
votes
3
answers
292
views
Python script to split overlapping ranges, version 4
4272236023),
(619240775, 631101725, 1910576108),
(727687992, 756241696, 3095538347),
(825700858, 866696475, 2647033502),
(853058882, 854026525, 2456782176),
(967641241, 1001077664, 3556790281)]
The performance … And it also needs to be comparable in performance to it, and of course for it to be of comparable performance it must not eat up RAM and freeze the computer. …
4
votes
2
answers
154
views
Python script that makes ngrams
This is a Python script that generates ngrams using a set of rules of what letters can follow a letter stored in a dictionary.
The output is then preliminarily processed using another script, then it …
1
vote
0
answers
216
views
Python case insensitive three level nested dictionary
tree = TreeDict()
for i, j, k in product(string, repeat=3):
tree.add([i, j, [k, *map(string.index, (i, j, k))]])
return tree
Performance … Performance:
%timeit test1()
1.24 s ± 19.8 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
%timeit test2()
150 ms ± 2.07 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)
test1 takes approximately …
4
votes
1
answer
123
views
Python scripts that generate valid ngrams for use in pseudoword generation
, especially performance of the last script, it took about 20 minutes on my machine with Intel Core i5-4430 on PtIpython to get the count of occurrences of each candidate, I have tried list comprehension … How can the formatting, code style, structure, readability and most importantly, performance of my scripts be improved?
The last script desperately needs boost in performance. …
4
votes
1
answer
372
views
Python multi-connection downloader
This is a simple Python multi-connection downloader primarily using requests, mmap and threads, it downloads a single file using 32 concurrent connections, slices the download using range parameter, a …
0
votes
1
answer
4k
views
Python case insensitive dictionary [closed]
It is fully functional but performance wise it is considerably slower than plain dicts.
How can it be faster? … But performance wise, from multiple tests, the last one takes only about 3 microseconds to complete, while the other three, from last to first, take 30, 80 and 90 microseconds respectively. …
7
votes
2
answers
3k
views
PowerShell - fast remove a directory with 10,000+ files
I am sick of File Explorer's super slow deletion speed, so I tried to write a PowerShell script to make deletion faster, and while it does its job, its speed isn't as high as what I intended it to be. …
0
votes
2
answers
284
views
Python script that makes generalized Ulam spirals
This is a Python script I wrote to generate generalized Ulam spirals.
I call the spirals generated by my code Ulamish spirals, they are one dimensional polylines that cross all two dimensional lattice …
6
votes
1
answer
321
views
C++ program to format byte sequences into Python like string representations
This is a C++ program I wrote, that includes functions to convert integers to byte sequences in little endian or big endian order, and functions to convert a byte sequence to a string representation.
…
0
votes
4
answers
514
views
Python weighted choosing that works with very large numbers
'g': 20298,
'h': 24064,
'x': 2975,
'w': 6020,
'j': 1440,
'q': 1741,
'z': 2997
}
print(weighted_choice(starting_letters))
print(weighted_choice(letter_frequency))
Output
h
e
Performance …