Function Performance Rules
Just read an article that contains some interesting AS3 performance conclusions that seem like they'd make good FlexPMD rules:
http://jacksondunstan.com/articles/413
“If you want speed you should not be using plain functions, local functions, or Function variables. This should give some hint as to the speed of Flash’s package-level functions like getTimer() . Further, you can get big speedups by foregoing static functions, calls trough an interface, and calls throughsuper, especially if you’re going to be using that convenience a lot. The rest of the functions are as fast as you can get. Don’t let anyone tell you that access specifiers matter, calling through this adds needless slowdown, or overriding is handy but slow. It is handy, but it’s not slow.”
Do these recommendations fit the bill for FlexPMD rules? If so - I'd be happy to write it up in JIRA.
Brian
Done - see: https://bugs.adobe.com/jira/browse/FLEXPMD-98
If you like the idea, please take the time to log in and vote for it!
Thanks,
Brian
Similar Messages
-
How to calculate value in SNMP performance rule?
Hi there,
My environment is running SCOM 2007 R2. Now I have a request to develop MP to monitor a network device which support SNMP. I successfully discovered the device. Then I created a performance rule using System.Performance.SNMPPerformanceProvider as data
source to collect the bandwidth usage. However the value returned from SNMP query is bit per second. But we want it to display as MB per second.
My rule is created as following
1. a data source, with ID as "DS", is created using System.Performance.SNMPPerformanceProvider to query performance data via SNMP
2. the data is write into DW
I just need to divide the value returned from "DS" before write it into DW. Can any components under "Condition Detection" can be used to manipulate the data?
Or any other tricks?
Thanks!I reviewed the thread, and I believe there are 2 questions here:
- the questions regarding the units in bit per second
out of the box, SCOM will be unable to modify the data. In other words, you get the value, then that value is shown in the console. There may be ways to achieve what you are looking for, but out of the box I dont see that this is doable.
- the questions regarding the output of the script
I am by no means a scripting person, but the error seems to be an issue with the script itself ("The requested SNMP operation identified an unknown variable" maybe a problem with the variable definition?). if you believe that is unrelated, the
only troubleshooting step that I can think of as a quick test is to run this with psexec as localsystem (as SCOM runs the workflows) and see if you are getting the same result. On an elevated command prompt, type PSEXEC -i -s -d CMD then that would open a
new command prompt window as localsystem.
hth
Jose -
Decision service cannot resolve RL function through Rules Connection
Decision service cannot resolve RL function through Rules Connection. I have created a function with argument Strinag and return type String.
ANybody here ?
-
Functions/Risks/Rules update recommendadtion
Hello colleagues,
Recently I have started to work with RAR(CC) tightly. Some points are uncleared for me and I would very appreciated for some helps and advices.
We performed post-installation steps for RAR (uploaded SAPObjects, BP, Functions, Rules and so on). The first my question is reqarding daily support system.
1) May we upload own files with actions and permissions which made by concotenation of standard actions/permissions files with our actions/permissions files? Or we have to manage via RAR interface?
1.1 In case if we can upload own files, would it rewrite existing information or add missing information?
1.2 Why standard files(actions, permissions) content duplicated information? For example, tcode F.13 contains in action file and permission file. Would it be enough to include F.13 (tcode and auth. objects) only in permission file?
2) Regarding question #1, should we run rule generation reports every time after changing:
2.1 If we add new BP, Function
2.2 If we don't change BP, Functions, but add new transactions/permissions to Functions
3) Is it possible to perform risk analysis during run of Rule Generation job (config -> log. systems -> generate rules)?
4) How to restrict number of rules if we get message like this:
Risk: M014 has exceeded the maximum number of rules (46,655) that can be generated
Regards,
Artem IvashkinArtem
yes all your questions are related to rules.
request you to divide them in two part and create new thread ...
that will be very helpful
Regarding :
) May we upload own files with actions and permissions which made by concotenation of standard actions/permissions files with our actions/permissions files? Or we have to manage via RAR interface?
"yes you can upload your own files, by modifiying the standard rule file. However be very cautious, the rate of error is very high. And extra TAB or RETURN and your rules will not be generated"
1.1 In case if we can upload own files, would it rewrite existing information or add missing information?
"Yes it will overwrite existing data"
1.2 Why standard files(actions, permissions) content duplicated information? For example, tcode F.13 contains in action file and permission file. Would it be enough to include F.13 (tcode and auth. objects) only in permission file?
"that is must, the program which generate rules. First create rules at Action level and based on Action level, Persmission level rules are generated"
regards,
Surpreet -
XML Embedded in Stored Function - Performance Considerations
A developer in my company approached us with a question about performance considerations while writing stored procedures or functions that embed XML.
The primary use for this function would be to provide a quick decision given a set of parameters. The function will use the input parameters along with some simple calculations and DB lookups to come up with an answer. These parameters will be stored in the database. Potentially even more parameters that are currently represented in the xml will be available in the DB and therefore could be looked up by the function.
My biggest question is if this way of using XML as an input parameter introduces any performance considerations or concerns for storage/bandwidth etc.
Thank you
Edited by: user8699561 on May 19, 2010 9:24 AMuser8699561 wrote:
A developer in my company approached us with a question about performance considerations while writing stored procedures or functions that embed XML.
The primary use for this function would be to provide a quick decision given a set of parameters. The function will use the input parameters along with some simple calculations and DB lookups to come up with an answer. These parameters will be stored in the database. Potentially even more parameters that are currently represented in the xml will be available in the DB and therefore could be looked up by the function.
My biggest question is if this way of using XML as an input parameter introduces any performance considerations or concerns for storage/bandwidth etc.
Thank you
Edited by: user8699561 on May 19, 2010 9:24 AMStorage/bandwith will be determined regarding the size of the XML doc, but there are ways to minimize those to the minimum (binary XML support in JDBC eg.). Performance overhead in general...eh..."it depends" (how you set it up)... -
BPS Planning Function Performance
Dear all,
In our projects we've faced the following problem.
We have BPS user-exit planning function. This function should process a large amount of data. And, of course, performance of this processing is very critical!
To increase performance we divided whole data amount into subsets and launch mentioned PF for each subset in background within separated thread ([http://help.sap.com/erp2005_ehp_04/helpdata/EN/c4/3a7f1f505211d189550000e829fbbd/frameset.htm], [http://help.sap.com/erp2005_ehp_04/helpdata/EN/fa/096e92543b11d1898e0000e8322d00/frameset.htm])
But now the problem:
Processing time for first thread is more, than 15 minutes of 35.000 records.
For second one - 5 sec(!!!) for 25.000
Third thread - 4 sec for 20.000
and so on...
In some threads calculation time also increases to 10-15 minutes for one thread. Statistic of calculation is below
Thread - Ecex. Time - Total read - Changed - New
1 - 0:12:46 - 33124 - 16317 - 1252
2 - 0:00:03 - 12936 - 2202 - 264
3 - 0:00:05 - 17108 - 6072 - 468
4 - 0:00:03 - 8540 - 2184 - 402
5 - 0:00:03 - 0 - 0 - 0
6 - 0:00:03 - 448 - 56 - 180
7 - 0:00:04 - 8344 - 2250 - 390
8 - 0:00:04 - 14112 - 4184 - 404
9 - 0:00:05 - 24388 - 10190 - 560
10 - 0:00:03 - 11482 - 4728 - 606
11 - 0:00:04 - 11508 - 4740 - 616
12 - 0:00:04 - 0 - 0 - 0
13 - 0:00:03 - 5936 - 1168 - 180
14 - 0:00:03 - 15036 - 4900 - 662
15 - 0:00:04 - 17640 - 5516 - 366
16 - 0:07:18 - 18284 - 8810 - 572
17 - 0:07:05 - 17752 - 8064 - 436
18 - 0:00:00 - 19966 - 6018 - 384
19 - 0:00:00 - 0 - 0 - 0
20 - 0:00:01 - 19992 - 6016 - 384
21 - 0:00:01 - 336 - 82 - 180
22 - 0:00:00 - 0 - 0 - 0
23 - 0:00:00 - 11228 - 2302 - 444
24 - 0:00:03 - 224 - 64 - 180
25 - 0:00:03 - 7952 - 3510 - 180
26 - 0:00:03 - 8288 - 2058 - 390
27 - 0:02:30 - 11928 - 5292 - 180
28 - 0:00:04 - 19096 - 3964 - 486
29 - 0:00:00 - 1568 - 490 - 180
30 - 0:02:29 - 11452 - 2428 - 444
31- - 0:00:01 - 12656 - 3436 - 504
32 - 0:00:00 - 0 - 0 - 0
33 - 0:00:09 - 336 - 126 - 180
34 - 0:00:08 - 4648 - 1086 - 180
35 - 0:00:07 - 0 - 0 - 0
36 - 0:00:06 - 0 - 0 - 0
37 - 0:00:05 - 336 - 24 - 180
What is a reason of such behaviour of PF?
Where is a bottleneck and how to eliminate influence of bottleneck on execution time of whole data amount?
Your advicesHello Dmitry,
take a look at the runtime statistics in transaction BPS_STAT0 (You might have to turn them on and re-run your process). This will show you where the time is spend (database or BPS).
If it's database time, then get your Basis Team involved. Check that DB stats are up-to-date, check that InfoCube requests are rolled-up/compressed, do SQL trace and analyze the DB execution plan, etc.
If it's BPS time, then it's probably something in your exit function. An ABAP trace (SE30) should help to nail down the root cause.
Processing packages is parallel is in general a good way to make it run faster. However, if the packages are too small the overhead will actually reduce performance. I would start with 5 parallel processes.
Regards,
Marc
SAP NetWeaver RIG -
T-SQL functions & business rules
Why can't I use T-SQL string functions in business rules?
For example, REPLACE(my_attribute, 'xyz', '_')
from Moscow with moneyThe business rules is running under the account which is configured in web.config, which is likely an admin of the database.
Expose T-SQL could cause of security issues.
We are considering to support some limited TSQL or maybe store procedure or function in next release. -
PE02(functions and rules)!!
hi
can we use function(custom) in the rule and pass the parameters at run time like we do in case of operation(ie in the rule itself..eg zcustX...where X is an indicator)?It's not possible to use functions in calculation rules, you have to implement the needed functionality in an operation.
Functions are ment to alter the state of internal tables, while operations are ment to alter the state of a single record in a table. The table that the calculation rule uses depends on the function that uses it. -
RAR: Error when uploading function permission rule file
Hi,
when I try to upload my own rule files in AC 5.3 SP 15, I receive the following error in the function permission file:
For input string "OR"
That's all of the message i GET. Unfortunately I wasn't able to locate where this error could be. The file looks just fine to me.
Any ideas ?
Thanks !
Regards,
Max
Edited by: Maximilian Trenks on May 17, 2011 3:42 AMHi,
there was an additional tab in one row. After removing it, it all worked fine.
Watch for 2 tabs in row !
Regards,
Max -
Have a function perform a function
In my game I have created a construction where a popup window
calls a predefined function if OK is pressed.
Unfortunately the function I call (bald in the script) is not
performed...
it looks like this:
For a tile in my game I defined the method: klikAction
Next to that I also defined an okAction (to be performed by
the popup when ok is clicked)
Popup function does show the text, but the okAction is not
performed.....
Any suggestions??
here is my script:
game.Tile102.prototype.klikAction = function(){
var action:String = "normal";
var tekst:String = "You pikc up the fax and read";
this.gotoAndStop(16); //show fax-img without the faxpaper
popup(tekst, action, this.okAction);}
game.Tile102.prototype.okAction = function(){
trace("OKACTION!!");
game.gameState.score += 5;
changeScore(game.gameState.score, 100);
game.gameState.isFax = false;
game.gameState.mouse = 2;
_root.mouse.gotoAndStop(2);
function popup(tekst:String, action:String,
okAction:Function){
stopAllMovements();
if(action == "normal"){
var popup:MovieClip = _root.attachMovie("popup_mc", "PopUp",
20000, {_x:(Stage.width-390)/2, _y:(Stage.height-200)/2});
popup.tekst_txt.text = tekst;
//create OK button to perform okActie and close the popup
popup.popup_btn_ok_mc.btnLabel_txt.text = "O.K.";
popup.popup_btn_ok_mc.onRelease = function() {
trace("hiero");
restartAllMovements();
popup.removeMovieClip();
okAction.apply();Well, maybe It is better explained with a "cleaner" script,
and a debug code in it.
I will show you the script and the oputput in the output
window it generates.
SCRIPT:
game.Tile102.prototype.klikAction = function(){
var tekst:String = "Je pakt de fax en leest";
popup(tekst, this.okAction);
for (var i in this)
trace(i+": "+this
game.Tile102.prototype.okAction = function(){
trace("OKACTION!!");
function popup(tekst:String, okAction:Function){
var popup:MovieClip = _root.attachMovie("popup_mc", "PopUp",
20000, {_x50, _y50});
popup.tekst_txt.text = tekst;
//maak een OK button die de okActie uitvoert en dan de popup
mc sluit.
popup.popup_btn_ok_mc.btnLabel_txt.text = "O.K.";
popup.popup_btn_ok_mc.onRelease = function() {
trace("hiero");
okAction.apply();
popup.removeMovieClip();
OUTPUT::
onRelease: [type Function]
j: 3
i: 1
onEnterFrame: [type Function]
and also the trace "hiero" is reflected in thee output
window.
So, no okAction is found as a property of Tile102.
I am puzzled.... Any suggestions??
game.Tile102.prototype.klikAction = function(){ -
Relationship between payroll function and rule
Hi,
I can understand that payroll function has a abap code attached to it,
when we open schema using pe01, we can see the function being called, then rule called after that.
And rule has operations which has code attached to it.
Now I am not able to understand how the abap code of funtion calls the rule and how the processig is done.
In short, how data is flowed between functions, rules and operations.
Regards,
ManuHI,
Please see below link if it helps you understand things well.
http://www.abaphr.com/sap-payroll-schema-functions-rules-and-operations-%E2%80%93-an-overview/
http://www.****************/showthread.php?t=369
http://www.****************/showthread.php?t=4878&page=3
http://www.****************/showthread.php?t=5242&page=3
http://www.****************/showthread.php?t=90268
Thanks,
Ameet -
Improve function performance (it is urgent please help me regarding)
i write nearly ten database function many of them are interlinked with each other when i call these function from a report then report become slower down too much nearly halted situation for 15 minutes
my question is that how i can improve the performance of these function by any method
note that these function just using one or two cursor and eache curosor containing nearly 100 recordsAlso: nearly ten functions (nine and a half? nine and seven-eigthts?) is a lot of functions to fix all at once.
1) Start with just one function. Get it working fast enough using the techniques Kamal mentions in standalone.
2) Tune all the functions independently.
3) Then add two functions together and see how they work. Tune when necessary.
4) Continue adding one function to the report and tune the ensemble until finished.
Good luck, APC -
How to capture Boolean returned by Type Function in rule
Hi All,
I have created a Rule by using Type(Where exist) with certain condition. My rule is returning false. So my execution rule is not triggering.
So my requirement is!
Type returns false then i want to return true to make sure my rule is triggering.
Thanks,
GuptaGupta,
If it returns False, then you don't want your action to execute, correct? What does your rule look like? If you are having trouble writing or testing the rule, run it on the Windows based ATE (Agentry Test Environment) and turn on rule debugging for that rule. You will be able to see the execution log for the rule and see where the problem is so you can modify it successfully. Unfortunately, there is no way to see or debug rule execution on smart devices to this point.
Jason Latko - Senior Product Developer at SAP -
Filter Function Performance Improvement
We have the Derived Measures created as calculation in the MDX Cube design. Whenever we use those metric in reporting, it's getting timed out and it executes for about 60 minutes in SSMS and timed out as well.
Sum( Filter([Standard Type].members,
instr(1,"[Happy]","["
+ cstr([Standard Type].currentmember.Name) + "]") > 0),
[Measures].[Total People])
Any idea on improving the above formula/expression to use for the measure ? Please advise.You are correct you will get an error. It will show as #VALUE! in Excel PivotTables.
Instead of using some very slow Filter and InStr functions, try this instead to avoid the errors:
create member CurrentCube.[Measures].[Test Invalid Reference] as ([Standard Type].[Standard Type].[Happy], [Measures].[Total People]);--if Happy doesn't exist, null out the measure
(iif(IsError([Standard Type].[Standard Type].[Happy]),[Measures].[Test Invalid Reference],{})) = null;
The advantage of this approach is that upon the user connecting, it will evaluate whether Happy exists once. Your approach runs inside each cell calculated at query time.
http://artisconsulting.com/Blogs/GregGalloway -
The search function performance in leopard is unacceptable
how come when i search in a folder, it always finds zero results for my search terms?
i can click into a folder and run a search on "CSX" with "File Name" selected, and it will return no search results at all... but when i go into that folder and look for myself, theres at least 10 files with "CSX" in the filename... whats wrong with this thing?? i didn't have this problem in 10.4
Message was edited by: chopbundlesMaybe you need to reset your Spotlight index. This operation is quite long but may be helpful.
Open Sotlight System Preferences, then add your hard drive to the exclusion list.
Save and remove your hard drive from the exclusion list.
The indexing should start from the beginning and after that, hopefully, you will be ok.
Maybe you are looking for
-
Copy "Artist - Song name" to the clipboard
The aim is to assign a shortcut for copying the artist and name of currently playing or selected song from iTunes to the clipboard. How it can be done?
-
I just got icloud... great syns with contacts in mac and on iphone But I use gmail and contacts in google they do not syn with iphone or with icloud HELP
-
What can I use in mac to extract files
Guys as you can tell by my questions I'm new in Mac, I like to know what tool I can use in mac to extract files like in PC WinZip, I downloaded free trial of Photoshop and I need to extract the file I'm not sure if Mac already came it a tool or I nee
-
New tab opens every time i click on a link
When I'm searching on...lets say Google and I click on the linked website it opens a new tab in Safari Version 6.0.2. How can I turn that off? I want it to open that link in the current tab.
-
I have a problem with my Mac OS X Lion when using Remote Desk Connection or VPN with Wifi.
I know it's the wifi configuration problem since it all works if I connect to the internet with a cable.