-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new option to enable or disable task compilation
- Loading branch information
1 parent
e5ae904
commit c62b14c
Showing
9 changed files
with
127 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
ISM/Default/Option/Settings/DisableBinaryTaskMode/DisableBinaryTaskMode.cr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module ISM | ||
|
||
module Default | ||
|
||
module Option | ||
|
||
module SettingsDisableBinaryTaskMode | ||
|
||
ShortText = "-dbtm" | ||
LongText = "disablebinarytaskmode" | ||
Description = "Disable compilation for ism tasks. Task will be interpreted and will start directly, but speed process will be slower." | ||
SetText = "Disable binary task mode" | ||
|
||
end | ||
|
||
end | ||
|
||
end | ||
|
||
end |
20 changes: 20 additions & 0 deletions
20
ISM/Default/Option/Settings/EnableBinaryTaskMode/EnableBinaryTaskMode.cr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module ISM | ||
|
||
module Default | ||
|
||
module Option | ||
|
||
module SettingsEnableBinaryTaskMode | ||
|
||
ShortText = "-ebtm" | ||
LongText = "enablebinarytaskmode" | ||
Description = "Enable compilation for ism tasks. Improve highly task speed, at cost of compilation time." | ||
SetText = "Enable binary task mode" | ||
|
||
end | ||
|
||
end | ||
|
||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
ISM/Option/Settings/DisableBinaryTaskMode/DisableBinaryTaskMode.cr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
module ISM | ||
|
||
module Option | ||
|
||
class SettingsDisableBinaryTaskMode < ISM::CommandLineOption | ||
|
||
def initialize | ||
super( ISM::Default::Option::SettingsDisableBinaryTaskMode::ShortText, | ||
ISM::Default::Option::SettingsDisableBinaryTaskMode::LongText, | ||
ISM::Default::Option::SettingsDisableBinaryTaskMode::Description) | ||
end | ||
|
||
def start | ||
if ARGV.size == 2 | ||
if !Ism.ranAsSuperUser | ||
Ism.printNeedSuperUserAccessNotification | ||
else | ||
Ism.settings.setBinaryTaskMode(false) | ||
Ism.printProcessNotification(ISM::Default::Option::SettingsDisableBinaryTaskMode::SetText) | ||
end | ||
end | ||
end | ||
|
||
end | ||
|
||
end | ||
|
||
end |
28 changes: 28 additions & 0 deletions
28
ISM/Option/Settings/EnableBinaryTaskMode/EnableBinaryTaskMode.cr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
module ISM | ||
|
||
module Option | ||
|
||
class SettingsEnableBinaryTaskMode < ISM::CommandLineOption | ||
|
||
def initialize | ||
super( ISM::Default::Option::SettingsEnableBinaryTaskMode::ShortText, | ||
ISM::Default::Option::SettingsEnableBinaryTaskMode::LongText, | ||
ISM::Default::Option::SettingsEnableBinaryTaskMode::Description) | ||
end | ||
|
||
def start | ||
if ARGV.size == 2 | ||
if !Ism.ranAsSuperUser | ||
Ism.printNeedSuperUserAccessNotification | ||
else | ||
Ism.settings.setBinaryTaskMode(true) | ||
Ism.printProcessNotification(ISM::Default::Option::SettingsEnableBinaryTaskMode::SetText) | ||
end | ||
end | ||
end | ||
|
||
end | ||
|
||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters