Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



 2961

Fast and Powerful duplicate remover!

by theriddler - 24 March, 2022 - 09:15 AM
This post is by a banned member (theriddler) - Unhide
86
Posts
27
Threads
5 Years of service
#1
Its very fast and it can handle big files.
I hope you enjoy, if you do leave a LIKE <3


Save to a python file.
run the file trough CMD or IDLE.
Filenames should be written without ".txt"



Hidden Content
You must register or login to view this content.

Making Openbullet configs and Python scripts.
This post is by a banned member (UberFuck) - Unhide
UberFuck  
Godlike
1.557
Posts
375
Threads
5 Years of service
#2
(This post was last modified: 25 March, 2022 - 10:12 AM by UberFuck. Edited 3 times in total.)
Not trying to rag, but why would you check to see if the line is in your storehouse variable before adding it?  A set() collection doesn't allow duplicates.

You could do this and get the same result...faster, less complex, and less working memory.  The only downside I can see is that the line order isn't preserved.

Hidden Content
You must register or login to view this content.



Edit...the below preserves the order and is actually faster than what I first posted.

Hidden Content
You must register or login to view this content.

This post is by a banned member (redone12) - Unhide
redone12  
Registered
190
Posts
12
Threads
6 Years of service
#3
Gotta take a look thanks.
LEECHERS WILL BE REPORTED  :pepegun: kek
This post is by a banned member (Veplexer) - Unhide
Veplexer  
Registered
75
Posts
5
Threads
4 Years of service
#4
thanks man!
This post is by a banned member (theriddler) - Unhide
86
Posts
27
Threads
5 Years of service
#5
(24 March, 2022 - 03:40 PM)foxegado Wrote: Show More
Not trying to rag, but why would you check to see if the line is in your storehouse variable before adding it?  A set() collection doesn't allow duplicates.

You could do this and get the same result...faster, less complex, and less working memory.  The only downside I can see is that the line order isn't preserved.

Appreciate your reply!
I'm always happy to learn stuff and well your example just seems better.
Making Openbullet configs and Python scripts.
This post is by a banned member (FurryFox) - Unhide
This post is by a banned member (Pal) - Unhide
Pal  
Supreme
137
Posts
19
Threads
5 Years of service
#7
hope it work well , thank you
This post is by a banned member (Lilsimpiiv1) - Unhide

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 2 Guest(s)