Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

LUA czy BLOKOWE - wydajność?


stanislawbejm

Question

3 answers to this question

Recommended Posts

  • 0

The topic has been moved from "

Please login or register to see this link.

" to "

Please login or register to see this link.

".

 

Temat został przeniesiony z "

Please login or register to see this link.

" do "

Please login or register to see this link.

".

Link to comment
Share on other sites

  • 0
On 8/1/2017 at 10:45 PM, stanislawbejm said:

pytanie było głupie, bo sceny blokowe są w tle skryptami LUA

 

Hmmm... kiedyś słyszałem, że nie ma głupich pytań ;)

 

Ale do rzeczy - przy dzisiejszym stanie wiedzy i możliwościach systemów informatycznych (czyt. braku implementacji AI, a jedynie używaniu zautomatyzowanych procesów) byłbym skłonny zaryzykować stwierdzenie, że sceny bloczkowe są mniej wydajne niż dobrze napisane sceny w Lua, będąc jednocześnie bardziej wydajnymi niż źle napisane sceny w Lua :evil:

 

Uzasadnienie:

Scena bloczkowa zawsze stosuje tę samą logikę do rozwiązania problemu, więc proste problemy są rozwiązywane w sposób optymalny. Im bardziej skomplikowana jest scena bloczkowa, tym bardziej skomplikowany kod Lua jest za nią ukryty, więc trudniejsze zadania będą mniej wydajne lub w ogóle niemożliwe. To ostatnie jest dobre samo w sobie, bo inaczej wydajność drastycznie by spadła.

 

Rozwiązanie skomplikowanego problemu często jest możliwe dzięki zastosowaniu "niestandardowego" podejścia - czyt. logiki trudnej do zautomatyzowania. Sceny robiące skomplikowane czynności mogą więc paradoksalnie być napisane w mniejszej ilości kodu i być bardziej wydajnymi.

 

Podsumowanie:

 

On 8/1/2017 at 10:45 PM, stanislawbejm said:

(...) sceny blokowe są w tle skryptami LUA

 

Z tą drobną różnicą, że jest to "Lua" a nie "LUA" - zob.

Please login or register to see this link.

a dokładniej kawałek:

 

Quote

"Lua" (pronounced LOO-ah) means "Moon" in Portuguese. As such, it is neither an acronym nor an abbreviation, but a noun. More specifically, "Lua" is a name, the name of the Earth's moon and the name of the language. Like most names, it should be written in lower case with an initial capital, that is, "Lua". Please do not write it as "LUA", which is both ugly and confusing, because then it becomes an acronym with

Please login or register to see this link.

for different people. So, please, write "Lua" right!

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...