Raised This Month: $12 Target: $400
 3% 

SM Compiler Oddities


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Skyy
AlliedModders Donor
Join Date: Jan 2010
Location: Toronto, Canada
Old 09-18-2018 , 08:30   SM Compiler Oddities
Reply With Quote #1

Hello, I am just curious if the SM compiler starts to act a little bit funny when plugins get rather large (300,000+ lines) or if there are any current limitations (i'm using sm 1.8.0.592 on that version.

I have been considering rewriting for new syntax w/ mm.
Skyy is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 09-18-2018 , 14:29   Re: SM Compiler Oddities
Reply With Quote #2

How pray-tell did you write a plugin that is 300k lines?
404UserNotFound is offline
Skyy
AlliedModders Donor
Join Date: Jan 2010
Location: Toronto, Canada
Old 09-18-2018 , 15:46   Re: SM Compiler Oddities
Reply With Quote #3

Oh, it's really just about adding new features; I use keyfiles, and we have about twenty of those; one for each module, and some are 10,000+ lines in their own rights. !skyrpg is a project that has transcended the better part of the last 4 years, for me.

It's just a little silly, it takes a good 30+ seconds to compile; https://ca.pcpartpicker.com/user/JESSlCA/saved/ are my machines, so I don't think it's a hardware problem. The good news is it still runs like a charm, regardless of compiler time.

Sadly, because of how much code there is, I have been hesitant to port it to the new method-map system, and the result has been functionality not supported in 1.8 has been added to the plugin by writing a smaller plugin with mm support that uses forwards and natives to send the information to the plugin, although perhaps that could cause a potential issue down-the-line.
Skyy is offline
lugui
Senior Member
Join Date: Feb 2016
Location: GetClientAbsOrigin();
Old 09-19-2018 , 08:16   Re: SM Compiler Oddities
Reply With Quote #4

IDK but if it does, I'm prety sure you can split the plgin features across many plgins
lugui is offline
Skyy
AlliedModders Donor
Join Date: Jan 2010
Location: Toronto, Canada
Old 09-19-2018 , 09:11   Re: SM Compiler Oddities
Reply With Quote #5

Yeah - Thank god for natives and forwards.
Skyy is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 09-21-2018 , 07:56   Re: SM Compiler Oddities
Reply With Quote #6

Bro L4D2's entire pseduo code ( or however you spell it ) is a mindboggling 1.5M lines, you can't possibly tell me you got a 300k line code...
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 09-21-2018 , 08:39   Re: SM Compiler Oddities
Reply With Quote #7

Pretty sure no one is going to be able to answer "if" the compiler acts weirdly with 300k lines. No one is insane to have one plugin with that many lines... well, no one else is. Compile time taking forever is normal, my weapon restrict plugin can take up to 1 second to compile and its easily under 5k lines.
Dr!fter is offline
r3D w0LF
Senior Member
Join Date: Dec 2013
Location: Albania
Old 09-21-2018 , 18:48   Re: SM Compiler Oddities
Reply With Quote #8

Yeah, it depends on ur code, mine is less than 100 lines and takes +3 seconds (ofc in this case i messed up)
r3D w0LF is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 09-21-2018 , 19:34   Re: SM Compiler Oddities
Reply With Quote #9

Quote:
Originally Posted by r3D w0LF View Post
Yeah, it depends on ur code, mine is less than 100 lines and takes +3 seconds (ofc in this case i messed up)
Lol @ the datasize
__________________
Neuro Toxin is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 09-21-2018 , 20:02   Re: SM Compiler Oddities
Reply With Quote #10

Quote:
Originally Posted by r3D w0LF View Post
Yeah, it depends on ur code, mine is less than 100 lines and takes +3 seconds (ofc in this case i messed up)
I need to see it lol
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode